aboutsummaryrefslogtreecommitdiffstats
path: root/man7
diff options
context:
space:
mode:
authornixiaoming <nixiaoming@huawei.com>2018-11-17 18:32:10 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2019-02-26 17:39:00 +0100
commitebfb6feee6d255957a1d7b9a47a9a8ffac730153 (patch)
tree12f84f02d2bb370e7778991446673998c6874411 /man7
parent953d1e0792e4772e0fe56c6b0547871ee690438e (diff)
downloadman-pages-ebfb6feee6d255957a1d7b9a47a9a8ffac730153.tar.gz
fanotify_init.2, fanotify.7: Document FAN_REPORT_TID
fanotify_init.2: add new flag FAN_REPORT_TID fanotify.7: update description of member pid in struct fanotify_event_metadata Signed-off-by: nixiaoming <nixiaoming@huawei.com> Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7')
-rw-r--r--man7/fanotify.78
1 files changed, 7 insertions, 1 deletions
diff --git a/man7/fanotify.7 b/man7/fanotify.7
index 74f5105df6..05af2d3ab5 100644
--- a/man7/fanotify.7
+++ b/man7/fanotify.7
@@ -223,7 +223,13 @@ Hence, when the receiver of the fanotify event accesses the notified file or
directory using this file descriptor, no additional events will be created.
.TP
.I pid
-This is the ID of the process that caused the event.
+If flag
+.B FAN_REPORT_TID
+was set in
+.BR fanotify_init (2),
+this is the TID of the thread that caused the event.
+Otherwise, this the PID of the process that caused the event.
+.PP
A program listening to fanotify events can compare this PID
to the PID returned by
.BR getpid (2),