Filesystem events
Keeping up with a very live
filesystem that changes
often and quickly is a challenge for the programs that work with it.
To help with this challenge, the QNX OS
io-blk.so library and, thus, all devb-*
drivers, support inotify_*() functions.
- inotify_event
- Structure that describes a watched filesystem event
- inotify_add_watch()
- Add or update a watch for filesystem events associated with a path
- inotify_init()
- Initialize the inode notify system
- inotify_rm_watch()
- Remove the watch associated with the given watch descriptor
- inotify_qnx_ext()
- Enable QNX OS-specific extensions to the inotify interface
The sys/inotify.h header file includes everything needed to read and process events from the event manager. For more information, see the inotify_*() functions in the C Library Reference.
While the QNX OS inotify implementation follows the same semantics as the Linux implementation, the behavior differs from Linux due to the kernel and filesystem models employed. For an overview of inotify, see inotify_add_watch() from Linux Standard Base Core Specification 4.1. Additionally, see inotify_init() and inotify_rm_watch().