Home
last modified time | relevance | path

Searched refs:FAN_EVENT_METADATA_LEN (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/include/uapi/linux/
Dfanotify.h165 #define FAN_EVENT_METADATA_LEN (sizeof(struct fanotify_event_metadata)) macro
171 #define FAN_EVENT_OK(meta, len) ((long)(len) >= (long)FAN_EVENT_METADATA_LEN && \
172 (long)(meta)->event_len >= (long)FAN_EVENT_METADATA_LEN && \
/Linux-v5.10/fs/notify/fanotify/
Dfanotify_user.c101 size_t event_size = FAN_EVENT_METADATA_LEN; in get_one_event()
337 metadata.event_len = FAN_EVENT_METADATA_LEN + in copy_event_to_user()
339 metadata.metadata_len = FAN_EVENT_METADATA_LEN; in copy_event_to_user()
360 if (copy_to_user(buf, &metadata, FAN_EVENT_METADATA_LEN)) in copy_event_to_user()
363 buf += FAN_EVENT_METADATA_LEN; in copy_event_to_user()
364 count -= FAN_EVENT_METADATA_LEN; in copy_event_to_user()
644 send_len += FAN_EVENT_METADATA_LEN; in fanotify_ioctl()