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

Function bus_alloc_resource

freebsd/kern/subr_bus.c:4609–4620  ·  view source on GitHub ↗

* @brief Wrapper function for BUS_ALLOC_RESOURCE(). * * This function simply calls the BUS_ALLOC_RESOURCE() method of the * parent of @p dev. */

Source from the content-addressed store, hash-verified

4607 * parent of @p dev.
4608 */
4609struct resource *
4610bus_alloc_resource(device_t dev, int type, int *rid, rman_res_t start,
4611 rman_res_t end, rman_res_t count, u_int flags)
4612{
4613 struct resource *res;
4614
4615 if (dev->parent == NULL)
4616 return (NULL);
4617 res = BUS_ALLOC_RESOURCE(dev->parent, dev, type, rid, start, end,
4618 count, flags);
4619 return (res);
4620}
4621
4622/**
4623 * @brief Wrapper function for BUS_ADJUST_RESOURCE().

Callers 15

bus_alloc_resource_anyFunction · 0.85
cpu_establish_intrFunction · 0.85
clock_attachFunction · 0.85
octeon_gpio_attachFunction · 0.85
octeon_pmc_attachFunction · 0.85
octeon_wdog_setupFunction · 0.85
octm_attachFunction · 0.85
ciu_attachFunction · 0.85
ciu_alloc_resourceFunction · 0.85
octusb_octeon_attachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected