]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 221220:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 24 Jun 2011 13:45:14 +0000 (13:45 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 24 Jun 2011 13:45:14 +0000 (13:45 +0000)
commit5a9b00fdec34b0d564ed77412c5e1efb18b39586
treeb0b258f26c77a7fab518ee5fa369b491400b9a54
parent21cfbbfb868a29cf881904db50d0a130d94fe451
MFC 221220:
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().

git-svn-id: svn://svn.freebsd.org/base/stable/8@223501 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
share/man/man9/Makefile
share/man/man9/rman.9
sys/kern/subr_rman.c
sys/sys/rman.h