diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2008-03-25 10:10:15 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2008-03-25 10:10:15 +0000 |
| commit | 0000daa58e025e5d9018da1e52c19f67720245a4 (patch) | |
| tree | 7a95088b5ebc251bf27ab7aaeb58af53446c6b90 | |
| parent | a7e7c7fcfe9a4303a997b569e4cf2a14fff4c025 (diff) | |
| download | man-pages-0000daa58e025e5d9018da1e52c19f67720245a4.tar.gz | |
Document SIGIO feature (new in 2.6.25) for inotify file descriptors.
Note that select()/poll()/epoll_wait() indicate a ready inotify
file descriptor as readable.
| -rw-r--r-- | man7/inotify.7 | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/man7/inotify.7 b/man7/inotify.7 index 755af10d61..d16feb1e87 100644 --- a/man7/inotify.7 +++ b/man7/inotify.7 @@ -23,7 +23,7 @@ .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" -.TH INOTIFY 7 2007-06-03 "Linux" "Linux Programmer's Manual" +.TH INOTIFY 7 2008-03-25 "Linux" "Linux Programmer's Manual" .SH NAME inotify \- monitoring file system events .SH DESCRIPTION @@ -310,6 +310,36 @@ Inotify file descriptors can be monitored using .BR poll (2), and .BR epoll (7). +When an event is available, the file descriptor indicates as readable. + +Since Linux 2.6.25, +signal-driven I/O notification is available for inotify file descriptors; +see the discussion of +.B F_SETFL +(for setting the +.B O_ASYNC +flag), +.BR F_SETOWN , +and +.B F_SETSIG +in +.BR fcntl (2). +The +.I siginfo_t +structure (described in +.BR sigaction (2)) +that is passed to the signal handler has the following fields set: +.IR si_fd +is set to the inotify file descriptor number; +.IR si_signo +is set to the signal number; +.IR si_code +is set to +.BR POLL_IN ; +and +.B POLLIN +is set in +.IR si_band . If successive output inotify events produced on the inotify file descriptor are identical (same |
