Lines Matching refs:event
117 struct inotify_event_info *event; in round_event_name_len() local
119 event = INOTIFY_E(fsn_event); in round_event_name_len()
120 if (!event->name_len) in round_event_name_len()
122 return roundup(event->name_len + 1, sizeof(struct inotify_event)); in round_event_name_len()
136 struct fsnotify_event *event; in get_one_event() local
141 event = fsnotify_peek_first_event(group); in get_one_event()
143 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in get_one_event()
145 event_size += round_event_name_len(event); in get_one_event()
153 return event; in get_one_event()
167 struct inotify_event_info *event; in copy_event_to_user() local
174 event = INOTIFY_E(fsn_event); in copy_event_to_user()
175 name_len = event->name_len; in copy_event_to_user()
182 inotify_event.mask = inotify_mask_to_arg(event->mask); in copy_event_to_user()
183 inotify_event.wd = event->wd; in copy_event_to_user()
184 inotify_event.cookie = event->sync_cookie; in copy_event_to_user()
199 if (copy_to_user(buf, event->name, name_len)) in copy_event_to_user()