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

Function int_alloc_resource

freebsd/kern/subr_rman.c:115–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113static int int_rman_release_resource(struct rman *rm, struct resource_i *r);
114
115static __inline struct resource_i *
116int_alloc_resource(int malloc_flag)
117{
118 struct resource_i *r;
119
120 r = malloc(sizeof *r, M_RMAN, malloc_flag | M_ZERO);
121 if (r != NULL) {
122 r->r_r.__r_i = r;
123 }
124 return (r);
125}
126
127int
128rman_init(struct rman *rm)

Callers 3

rman_manage_regionFunction · 0.85
rman_adjust_resourceFunction · 0.85

Calls 1

mallocFunction · 0.85

Tested by

no test coverage detected