Please note that these are direct, low-level bindings to C functions that form the inotify C API. Unless you have a specific reason to use this crate, inotify-rs, which is an idiomatic wrapper, is a much better choice.
In general, inotify usage follows the following pattern:
- Create an inotify instance using
- Manage watches with
- Read event using
- Close the inotify instance using
close, once you’re done.
Please refer to the inotify man page and the rest of this documentation for full details.
FD_CLOEXECflag for an inotify instance