perfmonctl.2: Rework discussion of PFM_CREATE_CONTEXT

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-02-09 21:39:49 +01:00
parent f25e7c8ecc
commit 0609db2aa2
1 changed files with 12 additions and 11 deletions

View File

@ -71,20 +71,21 @@ A new perfmon context is created as specified in
.I ctxt
and its file descriptor is returned in \fIctxt->ctx_fd\fR.
The file descriptor, apart from passing it to \fBperfmonctl\fR,
can be used to read event notifications (type
\fBpfm_msg_t\fR) using the
.BR read (2)
system call.
Both
.BR select (2)
The file descriptor can be used in subsequent calls to
.BR perfmonctl ()
and can be used to read event notifications (type
.IR pfm_msg_t )
using
.BR read (2).
The file descriptor is pollable using
.BR select (2),
.BR poll (2),
and
.BR poll (2)
can be used to wait for event notifications.
.BR epoll (7).
The context can be destroyed using the
The context can be destroyed by calling
.BR close (2)
system call.
on the file descriptor.
.TP
.B PFM_WRITE_PMCS
.\" pfm_write_pmcs()