Get the event manager's state
#include <sys/dcmd_fsevmgr.h> #define DCMD_FSEVMGR_STATE __DIOTF(_DCMD_FSEVMGR, 13, fsevmgr_state_t)
| Argument | Value |
|---|---|
| filedes | A file descriptor that you obtained by opening /dev/fsevents |
| dcmd | DCMD_FSEVMGR_STATE |
| dev_data_ptr | A pointer to a fsevmgr_state_t |
| n_bytes | sizeof(fsevmgr_state_t) plus the size of the array of fsevmgr_vmb_t structures |
| dev_info_ptr | NULL |
This command gets the event manager's state.
None.
A filled-in fsevmgr_state_t structure:
/* Information about a mailbox as used by fsevmgr_state_t
*/
typedef struct fsevmgr_vmb_s {
uint32_t muid; /* Mailbox unique id */
pid_t pid; /* Owner id */
} fsevmgr_vmb_t;
/* devctl for event manager state
*/
typedef struct fsevmgr_state_s {
uint32_t count; /* Reported number of mailboxes */
uint32_t actualcount; /* Actual number of mailboxes */
uint32_t maxcount; /* Maximum number of mailboxes */
pid_t pid; /* Event manager pid */
fsevmgr_vmb_t mailbox[0]; /* Mailboxes associated with the event manager */
} fsevmgr_state_t;