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

Function bus_generic_alloc_resource

freebsd/kern/subr_bus.c:4213–4222  ·  view source on GitHub ↗

* @brief Helper function for implementing BUS_ALLOC_RESOURCE(). * * This simple implementation of BUS_ALLOC_RESOURCE() simply calls the * BUS_ALLOC_RESOURCE() method of the parent of @p dev. */

Source from the content-addressed store, hash-verified

4211 * BUS_ALLOC_RESOURCE() method of the parent of @p dev.
4212 */
4213struct resource *
4214bus_generic_alloc_resource(device_t dev, device_t child, int type, int *rid,
4215 rman_res_t start, rman_res_t end, rman_res_t count, u_int flags)
4216{
4217 /* Propagate up the bus hierarchy until someone handles it. */
4218 if (dev->parent)
4219 return (BUS_ALLOC_RESOURCE(dev->parent, child, type, rid,
4220 start, end, count, flags));
4221 return (NULL);
4222}
4223
4224/**
4225 * @brief Helper function for implementing BUS_RELEASE_RESOURCE().

Callers 9

octopci_alloc_resourceFunction · 0.85
gic_v3_ofw_bus_alloc_resFunction · 0.85
arm_gic_alloc_resourceFunction · 0.85
localbus_alloc_resourceFunction · 0.85
qpi_pcib_alloc_resourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected