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

Function rman_deactivate_resource

freebsd/kern/subr_rman.c:677–687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675}
676
677int
678rman_deactivate_resource(struct resource *r)
679{
680 struct rman *rm;
681
682 rm = r->__r_i->r_rm;
683 mtx_lock(rm->rm_mtx);
684 r->__r_i->r_flags &= ~RF_ACTIVE;
685 mtx_unlock(rm->rm_mtx);
686 return 0;
687}
688
689static int
690int_rman_release_resource(struct rman *rm, struct resource_i *r)

Callers 10

nexus_activate_resourceFunction · 0.85
nexus_activate_resourceFunction · 0.85
nexus_activate_resourceFunction · 0.85
nexus_activate_resourceFunction · 0.85

Calls 2

mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected