Lines Matching refs:metadata
530 struct fanotify_event_metadata metadata; in copy_event_to_user() local
540 metadata.event_len = FAN_EVENT_METADATA_LEN + in copy_event_to_user()
542 metadata.metadata_len = FAN_EVENT_METADATA_LEN; in copy_event_to_user()
543 metadata.vers = FANOTIFY_METADATA_VERSION; in copy_event_to_user()
544 metadata.reserved = 0; in copy_event_to_user()
545 metadata.mask = event->mask & FANOTIFY_OUTGOING_EVENTS; in copy_event_to_user()
546 metadata.pid = pid_vnr(event->pid); in copy_event_to_user()
554 metadata.pid = 0; in copy_event_to_user()
568 metadata.fd = fd; in copy_event_to_user()
587 if (metadata.pid == 0 || in copy_event_to_user()
602 if (WARN_ON_ONCE(metadata.event_len > count)) in copy_event_to_user()
605 if (copy_to_user(buf, &metadata, FAN_EVENT_METADATA_LEN)) in copy_event_to_user()
624 return metadata.event_len; in copy_event_to_user()