Main index | Section 9 | Options |
#include <sys/param.h>
#include <sys/bus.h>
#include <machine/bus.h>
#include <sys/rman.h>
#include <machine/resource.h>
Note that none of the constraints of the original allocation request such as alignment or boundary restrictions are checked by bus_adjust_resource(). It is the caller's responsibility to enforce any such requirements.
struct resource *res; int error;error = bus_adjust_resource(dev, SYS_RES_MEMORY, res, rman_get_start(res), rman_get_end(res) + 0x1000);
[EINVAL] | |
The dev device does not have a parent device. | |
[EINVAL] | |
The r resource is a shared resource. | |
[EINVAL] | |
The new address range does not overlap with the existing address range of r. | |
[EBUSY] | |
The new address range conflicts with another allocated resource. | |
BUS_ADJUST_RESOURCE (9) | April 23, 2016 |
Main index | Section 9 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | Never write it in C if you can do it in `awk'; Never do it in `awk' if `sed' can handle it; Never use `sed' when `tr' can do the job; Never invoke `tr' when `cat' is sufficient; Avoid using `cat' whenever possible. |
” |
— Taylor's Laws of Programming |