MCPcopy Create free account
hub / github.com/F-Stack/f-stack / nexus_release_resource

Function nexus_release_resource

freebsd/arm/arm/nexus.c:257–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257static int
258nexus_release_resource(device_t bus, device_t child, int type, int rid,
259 struct resource *res)
260{
261 int error;
262
263 if (rman_get_flags(res) & RF_ACTIVE) {
264 error = bus_deactivate_resource(child, type, rid, res);
265 if (error)
266 return (error);
267 }
268 return (rman_release_resource(res));
269}
270
271static bus_space_tag_t
272nexus_get_bus_tag(device_t bus __unused, device_t child __unused)

Callers

nothing calls this directly

Calls 3

rman_get_flagsFunction · 0.85
bus_deactivate_resourceFunction · 0.85
rman_release_resourceFunction · 0.85

Tested by

no test coverage detected