Notify the filesystem event policy manager
#include <sys/dcmd_blk.h> #define DCMD_FSYS_FSNOTIFY __DIOTF(_DCMD_FSYS, 29, uint32_t)
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening the device. |
dcmd | DCMD_FSYS_FSNOTIFY |
dev_data_ptr | Depends on the request; see below |
n_bytes | Depends on the request; see below |
dev_info_ptr | NULL |
The filesystem event policy manager, fsevmgr sends these commands to all of the io-blk.so mountpoints to make requests:
typedef struct _fsnotify_info_s { uint32_t command; /* Structure type command */ uint32_t uid; /* Mount point unique id */ } fsnotify_info_t;
typedef struct fsnotify_watch_cmd_s { uint32_t command; /* Structure type command */ uint32_t muid; /* Receiving mailbox unique id */ uint32_t wuid; /* Watch unique id */ uint32_t mask; /* inotify watch mask */ uint64_t inode; /* inode being watched */ uint32_t mpuid; /* Mount point unique id */ } fsnotify_watch_cmd_t;
The input depends on the request, but includes at least the FSNOTIFY_REQ_* command itself:
The input depends on the request:
The devctl() function can return the following, in addition to the error codes listed in its entry in the C Library Reference:
Filesystem events in the QNX Neutrino System Architecture guide
fsevmgr in the Utilities Reference
devctl() in the QNX Neutrino C Library Reference