summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2011-04-29 20:05:19 +0000
committerjhb <jhb@FreeBSD.org>2011-04-29 20:05:19 +0000
commit22b381b7217c2644a04f90b803d07661633ac04c (patch)
tree68553f76dd359b9f2d5933c94bc812021fc6bf4c /etc
parent08955ceac0e6a5e070d655c0f47e170747a075d7 (diff)
downloadFreeBSD-src-22b381b7217c2644a04f90b803d07661633ac04c.zip
FreeBSD-src-22b381b7217c2644a04f90b803d07661633ac04c.tar.gz
Extend the rman(9) API to support altering an existing resource.
Specifically, these changes allow a resource to back a relocatable and resizable resource such as the I/O window decoders in PCI-PCI bridges. - rman_adjust_resource() can adjust the start and end address of an existing resource. It only succeeds if the newly requested address space is already free. It also supports shrinking a resource in which case the freed space will be marked unallocated in the rman. - rman_first_free_region() and rman_last_free_region() return the start and end addresses for the first or last unallocated region in an rman, respectively. This can be used to determine by how much the resource backing an rman must be adjusted to accomodate an allocation request that does not fit into the existing rman. While here, document the rm_start and rm_end fields in struct rman, rman_is_region_manager(), the bound argument to rman_reserve_resource_bound(), and rman_init_from_resource().
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud