Expand PGET_WANTREAD. Language fixes.

Submitted by:	jmg
This commit is contained in:
Sergey Kandaurov 2014-05-04 12:32:37 +00:00
parent c401df0176
commit 4688952ced
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=265320

View File

@ -46,13 +46,13 @@ and fills a pointer to the
structure in structure in
.Fa *pp . .Fa *pp .
In the latter case, a process owning the specified thread is looked for. In the latter case, a process owning the specified thread is looked for.
The actual operation is performed by invoking the The operation is performed by invoking the
.Xr pfind 9 .Xr pfind 9
function. function.
The found process is returned locked. The found process is returned locked.
Only for For the
.Dv PGET_HOLD .Dv PGET_HOLD
case it is returned unlocked (but held). case, it is returned unlocked (but held).
The The
.Fn pget .Fn pget
function can function can
@ -65,7 +65,7 @@ The
argument is the logical OR of some subset of: argument is the logical OR of some subset of:
.Bl -tag -width ".Dv PGET_NOTINEXEC" .Bl -tag -width ".Dv PGET_NOTINEXEC"
.It Dv PGET_HOLD .It Dv PGET_HOLD
If set, the found process will be referenced and unlocked. If set, the found process will be held and unlocked.
.It Dv PGET_CANSEE .It Dv PGET_CANSEE
If set, the found process will be checked for its visibility. If set, the found process will be checked for its visibility.
See See
@ -93,6 +93,8 @@ If set,
is not assumed as a thread id for values larger than is not assumed as a thread id for values larger than
.Dv PID_MAX . .Dv PID_MAX .
.It Dv PGET_WANTREAD .It Dv PGET_WANTREAD
If set, the found process will be checked that the caller may get
a read access to its structure.
A shorthand for A shorthand for
.Pq Dv PGET_HOLD | PGET_CANDEBUG | PGET_NOTWEXIT . .Pq Dv PGET_HOLD | PGET_CANDEBUG | PGET_NOTWEXIT .
.El .El