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

Function nexus_get_resource

freebsd/mips/mips/nexus.c:374–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374static int
375nexus_get_resource(device_t dev, device_t child, int type, int rid,
376 rman_res_t *startp, rman_res_t *countp)
377{
378 struct nexus_device *ndev = DEVTONX(child);
379 struct resource_list *rl = &ndev->nx_resources;
380 struct resource_list_entry *rle;
381
382 rle = resource_list_find(rl, type, rid);
383 if (!rle)
384 return(ENOENT);
385 if (startp)
386 *startp = rle->start;
387 if (countp)
388 *countp = rle->count;
389 return (0);
390}
391
392static void
393nexus_delete_resource(device_t dev, device_t child, int type, int rid)

Callers

nothing calls this directly

Calls 1

resource_list_findFunction · 0.85

Tested by

no test coverage detected