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

Function bus_get_resource

freebsd/kern/subr_bus.c:4833–4839  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

4831 * parent of @p dev.
4832 */
4833int
4834bus_get_resource(device_t dev, int type, int rid,
4835 rman_res_t *startp, rman_res_t *countp)
4836{
4837 return (BUS_GET_RESOURCE(device_get_parent(dev), dev, type, rid,
4838 startp, countp));
4839}
4840
4841/**
4842 * @brief Wrapper function for BUS_GET_RESOURCE().

Callers 2

atrtc_attachFunction · 0.85
attimer_attachFunction · 0.85

Calls 1

device_get_parentFunction · 0.85

Tested by

no test coverage detected