--- libev/ev.pod 2007/12/24 04:34:00 1.107 +++ libev/ev.pod 2007/12/24 10:39:21 1.108 @@ -1498,6 +1498,22 @@ usually detected immediately, and if the file exists there will be no polling. +=head3 Inotify + +When C support has been compiled into libev (generally only +available on Linux) and present at runtime, it will be used to speed up +change detection where possible. The inotify descriptor will be created lazily +when the first C watcher is being started. + +Inotify presense does not change the semantics of C watchers +except that changes might be detected earlier, and in some cases, to avoid +making regular C calls. Even in the presense of inotify support +there are many cases where libev has to resort to regular C polling. + +(There is no support for kqueue, as apparently it cannot be used to +implement this functionality, due to the requirement of having a file +descriptor open on the object at all times). + =head3 The special problem of stat time resolution The C syscall only supports full-second resolution portably, and @@ -1562,6 +1578,8 @@ =back +=head3 Examples + Example: Watch C for attribute changes. static void