DCMD_FSEVMGR_WRITER
Enable inotify writing for an OCB
Synopsis:
#include <sys/dcmd_fsevmgr.h>
#define DCMD_FSEVMGR_WRITER __DIOTF(_DCMD_FSEVMGR, 6, fsevmgr_chidkey_t)
Arguments to devctl():
| Argument | Value |
|---|---|
| filedes | A file descriptor that you obtained by opening /dev/fsevents |
| dcmd | DCMD_FSEVMGR_WRITER |
| dev_data_ptr | A pointer to a fsevmgr_chidkey_t |
| n_bytes | sizeof(fsevmgr_chidkey_t) |
| dev_info_ptr | NULL |
Description:
This command enables inotify writing for an OCB.
Input:
An initialize fsevmgr_chidkey_t structure:
typedef struct fsevmgr_chidkey_s {
int32_t chid; /* Communication channel id */
uint32_t wrid; /* Writer unique id */
uint64_t key; /* Populated with a communication key */
} fsevmgr_chidkey_t;
Set chid to the channel ID of the would-be writer.
Output:
The wrid and key are set.
Errors:
The devctl() function can return the following, in addition to the error codes listed in its entry in the C Library Reference:
- EINVAL
- The buffer isn't the right size, the interface isn't for inotify, or the writer is already registered.
See also:
devctl() in the QNX Neutrino C Library Reference
fsevmgr in the Utilities Reference
Page updated:
