| 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.
| “ | A typical Unix /bin or /usr/bin directory contains a hundred different kinds of programs, written by dozens of egotistical programmers, each with its own syntax, operating paradigm, rules of use ... strategies for specifying options, and different sets of constraints. | ” |
| — The Unix Haters' handbook | ||