kcmp.2: Minor tweaks to Cyrill Gorcunov's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-08-15 21:47:53 +02:00
parent 2268af111e
commit 3e105e072d
1 changed files with 14 additions and 14 deletions

View File

@ -157,12 +157,13 @@ See the discussion of the
flag in flag in
.BR clone (2). .BR clone (2).
.TP .TP
.BR KCMP_EPOLL_TFD .BR KCMP_EPOLL_TFD " (since Linux 4.13)"
.\" commit 0791e3644e5ef21646fe565b9061788d05ec71d4
Check whether the file descriptor Check whether the file descriptor
.I idx1 .I idx1
of the process of the process
.I pid1 .I pid1
present in is present in the
.BR epoll (7) .BR epoll (7)
instance described by instance described by
.I idx2 .I idx2
@ -170,29 +171,28 @@ of the process
.IR pid2 . .IR pid2 .
The argument The argument
.I idx2 .I idx2
is an address of a structure where the target file is described. is a pointer to a structure where the target file is described.
This structure has the form:
.in +4n .in +4n
.nf .nf
.sp .sp
struct kcmp_epoll_slot { struct kcmp_epoll_slot {
__u32 efd; __u32 efd;
__u32 tfd; __u32 tfd;
__u64 toff; __u64 toff;
}; };
.fi .fi
.in .in
.sp Within this structure,
where
.I efd .I efd
is epoll file descriptor from is an epoll file descriptor returned from
.BR epoll_create (2) .BR epoll_create (2),
call,
.I tfd .I tfd
is a target file number, is a target file descriptor number, and
.I toff .I toff
is a target file offset counted from zero. is a target file offset counted from zero.
Several different targets may be registered with Several different targets may be registered with
the same file descriptor number and setting specific the same file descriptor number and setting a specific
offset helps to investigate each of them. offset helps to investigate each of them.
.PP .PP
Note the Note the
@ -292,7 +292,7 @@ is outside of the user's address space.
.TP .TP
.B ENOENT .B ENOENT
The target file is not present in The target file is not present in
.BR epoll () .BR epoll (7)
instance. instance.
.SH VERSIONS .SH VERSIONS
The The