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

Function apb_release_resource

freebsd/mips/atheros/apb.c:266–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266static int
267apb_release_resource(device_t dev, device_t child, int type,
268 int rid, struct resource *r)
269{
270 struct resource_list *rl;
271 struct resource_list_entry *rle;
272
273 rl = apb_get_resource_list(dev, child);
274 if (rl == NULL)
275 return (EINVAL);
276 rle = resource_list_find(rl, type, rid);
277 if (rle == NULL)
278 return (EINVAL);
279 rman_release_resource(r);
280 rle->res = NULL;
281
282 return (0);
283}
284
285static int
286apb_setup_intr(device_t bus, device_t child, struct resource *ires,

Callers

nothing calls this directly

Calls 3

resource_list_findFunction · 0.85
rman_release_resourceFunction · 0.85
apb_get_resource_listFunction · 0.70

Tested by

no test coverage detected