Add or update a recursive inotify watch
#include <sys/dcmd_fsevmgr.h> #define DCMD_FSEVMGR_RFILTER_ADD __DIOTF(_DCMD_FSEVMGR, 9, fsevmgr_watch_add_t)
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by calling inotify_init() |
dcmd | DCMD_FSEVMGR_RFILTER_ADD |
dev_data_ptr | A pointer to a fsevmgr_watch_add_t |
n_bytes | sizeof(fsevmgr_watch_add_t) |
dev_info_ptr | NULL |
This command adds a recursive watch on a file descriptor. You should call inotify_add_watch() instead of using this command directly.
A filled-in fsevmgr_watch_add_t structure:
typedef struct fsevmgr_watch_add_s { int32_t wd; uint32_t mask; int fd; } fsevmgr_watch_add_t;
The members include:
On success, the watch descriptor is stored in the wd member.
devctl(), inotify_add_watch(), inotify_init(), inotify_rm_watch() in the QNX Neutrino C Library Reference
fsevmgr in the Utilities Reference