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

Function nexus_release_resource

freebsd/mips/mips/nexus.c:403–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403static int
404nexus_release_resource(device_t bus, device_t child, int type, int rid,
405 struct resource *r)
406{
407 dprintf("%s: entry\n", __func__);
408
409 if (rman_get_flags(r) & RF_ACTIVE) {
410 int error = bus_deactivate_resource(child, type, rid, r);
411 if (error)
412 return error;
413 }
414
415 return (rman_release_resource(r));
416}
417
418static int
419nexus_activate_resource(device_t bus, device_t child, int type, int rid,

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