BUS_GET_RESOURCE(9) | Kernel Developer's Manual | BUS_GET_RESOURCE(9) |
bus_get_resource
—
read a resource range/value with a given resource
ID
#include
<sys/param.h>
#include <sys/bus.h>
#include <sys/rman.h>
int
bus_get_resource
(device_t dev,
int type, int rid,
rman_res_t *startp, rman_res_t
*countp);
The
bus_get_resource
()
function reads the range or value of the resource
type, rid pair and stores it in
the startp and countp
arguments.
The arguments are as follows:
SYS_RES_IRQ
SYS_RES_DRQ
SYS_RES_MEMORY
SYS_RES_IOPORT
Zero is returned on success, otherwise an error is returned.
This manual page was written by Sascha Wildner.
September 26, 2015 | Debian |