TOC   Previous   Next

inotify

How

  1. Create an inotify instance, and obtain a file descriptor that refers to it (inotify_init())

  2. Tell kernel about which files are of interest: add/modify and remove watches for the inotify file instance.


  3. Obtain event notifications by reading from the inotify file descriptor.


  4. close() the inotify file descriptor (automatically frees all watches).

(C) 2006, Michael Kerrisk