Date: Fri, 24 Jun 2011 13:45:14 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/share/man/man9 Makefile rman.9 src/sys/kern subr_rman.c src/sys/sys rman.h Message-ID: <201106241347.p5ODlrJ7009475@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2011-06-24 13:45:14 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
share/man/man9 Makefile rman.9
sys/kern subr_rman.c
sys/sys rman.h
Log:
SVN rev 223501 on 2011-06-24 13:45:14Z by jhb
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().
Revision Changes Path
1.357.2.19 +5 -0 src/share/man/man9/Makefile
1.9.10.2 +122 -5 src/share/man/man9/rman.9
1.62.2.4 +158 -0 src/sys/kern/subr_rman.c
1.34.10.2 +3 -0 src/sys/sys/rman.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106241347.p5ODlrJ7009475>
