PHP
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

inotify_rm_watch> <inotify_queue_len
Last updated: Fri, 30 Jan 2009

view this page in

inotify_read

(No version information available, might be only in CVS)

inotify_readRead events from an inotify instance

説明

array inotify_read ( resource $inotify_instance )

Read inotify events from an inotify instance.

パラメータ

inotify_instance

inotify_init() が返すリソース

返り値

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)

参考

  • inotify_init() - Initialize an inotify instance
  • stream_select() - select() システムコールと同等の操作を、 ストリームの配列に対して tv_sec と tv_usec で指定されたタイムアウト時間をもって行う
  • stream_set_blocking() - ストリームのブロックモードを有効にする / 解除する
  • inotify_queue_len() - Return a number upper than zero if there are pending events



add a note add a note User Contributed Notes
inotify_read
There are no user contributed notes for this page.

inotify_rm_watch> <inotify_queue_len
Last updated: Fri, 30 Jan 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites