inotify_read

(PECL inotify >= 0.1.2)
Read events from an inotify instance
array inotify_read ( resource $inotify_instance )

Read inotify events from an inotify instance.

Parameters:
inotify_instance

Resource returned by inotify_init()

Returns:

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 following keys:

  • wd is a watch descriptor returned by inotify_add_watch()
  • mask is a bit mask of events
  • cookie is a unique id to connect related events (e.g. IN_MOVE_FROM and IN_MOVE_TO)
  • name is the name of a file (e.g. if a file was modified in a watched directory)
See also:

inotify_init() -

stream_select() -

stream_set_blocking() -

inotify_queue_len() -

doc_php
2016-02-24 15:57:01
Comments
Leave a Comment

Please login to continue.