1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Clarify that the end argument meaning for rman_reserve_resource_bound

is the highest acceptable value for the ending of the resource being
allocated.  One could also believe that it is the highest starting
value of the resource.  The code definitely expects the former, but I
could find no documentation of this apart from TFSC.
This commit is contained in:
Warner Losh 2005-03-15 23:58:55 +00:00
parent 463ec0ac87
commit f3011a7c10
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143670

View File

@ -187,6 +187,17 @@ and
.Fa end
of an acceptable range, as well as
alignment, and the code will attempt to find a free segment which fits.
The
.Fa start
argument is the lowest acceptable starting value of the resource.
The
.Fa end
argument is the highest acceptable ending value of the resource.
Therefore,
.Fa start + count - 1
must be <=
.Fa end
for any allocation to happen.
The default behavior is to allocate an exclusive segment, unless the
.Dv RF_SHAREABLE
or