Use more markup.

This commit is contained in:
jruoho 2012-03-14 13:24:48 +00:00
parent 0ef1aebbc8
commit 0208cf2398
1 changed files with 14 additions and 8 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: _lwp_ctl.2,v 1.3 2009/02/17 18:51:56 njoly Exp $
.\" $NetBSD: _lwp_ctl.2,v 1.4 2012/03/14 13:24:48 jruoho Exp $
.\"
.\" Copyright (c)2007 YAMAMOTO Takashi,
.\" All rights reserved.
@ -25,7 +25,7 @@
.\" SUCH DAMAGE.
.\"
.\" ------------------------------------------------------------
.Dd May 5, 2008
.Dd March 14, 2012
.Dt _LWP_CTL 2
.Os
.Sh NAME
@ -50,19 +50,25 @@ It takes the following arguments.
The bitwise-OR of the following flags.
.Bl -tag -width LWPCTL_FEATURE_CURCPU
.It Dv LWPCTL_FEATURE_CURCPU
Request lc_curcpu.
Request
.Vt lc_curcpu .
.It Dv LWPCTL_FEATURE_PCTR
Request lc_pctr.
Request
.Vt lc_pctr .
.El
.It Fa address
The address to store a pointer to lwpctl structure for the calling LWP.
The address to store a pointer to
.Vt lwpctl
structure for the calling LWP.
.El
.Pp
The per-LWP communication area is described by an lwpctl structure.
The per-LWP communication area is described by an
.Vt lwpctl
structure.
It has following members, depending on
.Fa features .
.Bl -tag -width int_lc_curcpu
.It int lc_curcpu
.It Vt int lc_curcpu
The integral identifier of the CPU on which the LWP is running,
or
.Dv LWPCTL_CPU_NONE
@ -72,7 +78,7 @@ userland.
It's available only if requested with the
.Dv LWPCTL_FEATURE_CURCPU
flag.
.It int lc_pctr
.It Vt int lc_pctr
The integer which is incremented on every context switches to the LWP.
It can be used to detect preemption of the LWP.
(thus its name "preemption counter".)