INOTIFY_READ(3) 1 INOTIFY_READ(3)
inotify_read - Read events from an inotify instance
SYNOPSIS
array inotify_read (resource $inotify_instance)
DESCRIPTION
Read inotify events from an inotify instance.
PARAMETERS
o $inotify_instance
- Resource returned by inotify_init(3)
RETURN VALUES
An array of inotify events or FALSE if no events was pending and $inotify_instance is non-blocking. Each event is an array with the fol-
lowing keys:
owd is a watch descriptor returned by inotify_add_watch(3)
omask is a bit mask of events
ocookie is a unique id to connect related events (e.g.
IN_MOVE_FROM and IN_MOVE_TO)
oname is the name of a file (e.g. if a file was modified in a watched directory)
SEE ALSO
inotify_init(3), stream_select(3), stream_set_blocking(3), inotify_queue_len(3).
PHP Documentation Group INOTIFY_READ(3)