Complete removal of restriction about overlaps to rman_manage_region:
remove comment and man page verbage... Document return values for rman_init and rman_manage_region.. MFC after: 1 week
This commit is contained in:
parent
2e7b6bff38
commit
ebf750a9fd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169075
@ -25,7 +25,7 @@
|
||||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd March 15, 2005
|
||||
.Dd April 28, 2007
|
||||
.Dt RMAN 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -140,6 +140,12 @@ function initializes the region descriptor, pointed to by the
|
||||
.Fa rm
|
||||
argument, for use with the resource management functions.
|
||||
It also initializes any mutexes associated with the structure.
|
||||
If
|
||||
.Fn rman_init
|
||||
fails to initalize the mutex, it will return
|
||||
.Er ENOMEM ; otherwise it will return 0 and
|
||||
.Fa rm
|
||||
will be initalized.
|
||||
.Pp
|
||||
The
|
||||
.Fn rman_fini
|
||||
@ -167,10 +173,15 @@ The
|
||||
and
|
||||
.Fa end
|
||||
arguments specify the bounds of the region.
|
||||
.Pp
|
||||
.Em NOTE :
|
||||
This interface is not robust against programming errors which
|
||||
add multiple copies of the same region.
|
||||
If successful,
|
||||
.Fn rman_manage_region
|
||||
will return 0.
|
||||
If the region overlaps with an existing region, it will return
|
||||
.Er EBUSY .
|
||||
.Er ENOMEM
|
||||
will be return when
|
||||
.Fn rman_manage_region
|
||||
failed to allocate memory for the region.
|
||||
.Pp
|
||||
The
|
||||
.Fn rman_reserve_resource_bound
|
||||
|
@ -155,10 +155,6 @@ rman_init(struct rman *rm)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* NB: this interface is not robust against programming errors which
|
||||
* add multiple copies of the same region.
|
||||
*/
|
||||
int
|
||||
rman_manage_region(struct rman *rm, u_long start, u_long end)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user