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

Function rman_release_resource

freebsd/kern/subr_rman.c:783–796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

781}
782
783int
784rman_release_resource(struct resource *re)
785{
786 int rv;
787 struct resource_i *r;
788 struct rman *rm;
789
790 r = re->__r_i;
791 rm = r->r_rm;
792 mtx_lock(rm->rm_mtx);
793 rv = int_rman_release_resource(rm, r);
794 mtx_unlock(rm->rm_mtx);
795 return (rv);
796}
797
798uint32_t
799rman_make_alignment_flags(uint32_t size)

Callers 15

apb_alloc_resourceFunction · 0.85
apb_release_resourceFunction · 0.85
apb_alloc_resourceFunction · 0.85
apb_release_resourceFunction · 0.85
nexus_alloc_resourceFunction · 0.85
nexus_release_resourceFunction · 0.85
octopci_alloc_resourceFunction · 0.85
obio_alloc_resourceFunction · 0.85
mtk_pci_alloc_resourceFunction · 0.85

Calls 3

mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected