An example use-case for this would be to monitor events on a
file-backed disk image that is being used through virtio-blk.
- Add me_fflags member to struct mevent
- Modify mevent_kq_fflags() to return me_fflags.
- Modify mevent_add_state() to accept an additional argument, fflags
mevent_add() doesn't handle setting filter specific flags. I added
mevent_create() that allows the caller to specify flags and
fflags. The expected values for flags and fflags are those described in kqueue(2).
Example usage of mevent_create():
mevent_create(fd, EVF_VNODE, EV_ADD | EV_CLEAR, NOTE_ATTRIB, handler, handler_arg);