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

Function nexus_set_resource

freebsd/arm64/arm64/nexus.c:387–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387static int
388nexus_set_resource(device_t dev, device_t child, int type, int rid,
389 rman_res_t start, rman_res_t count)
390{
391 struct nexus_device *ndev = DEVTONX(child);
392 struct resource_list *rl = &ndev->nx_resources;
393
394 /* XXX this should return a success/failure indicator */
395 resource_list_add(rl, type, rid, start, start + count - 1, count);
396
397 return(0);
398}
399
400static int
401nexus_deactivate_resource(device_t bus, device_t child, int type, int rid,

Callers

nothing calls this directly

Calls 1

resource_list_addFunction · 0.85

Tested by

no test coverage detected