Searched refs:fsn_event (Results 1 – 4 of 4) sorted by relevance
/linux-4.19.296/fs/notify/fanotify/ |
D | fanotify.c | 201 struct fsnotify_event *fsn_event; in fanotify_handle_event() local 241 fsn_event = &event->fse; in fanotify_handle_event() 242 ret = fsnotify_add_event(group, fsn_event, fanotify_merge); in fanotify_handle_event() 247 fsnotify_destroy_event(group, fsn_event); in fanotify_handle_event() 251 ret = fanotify_get_response(group, FANOTIFY_PE(fsn_event), in fanotify_handle_event() 253 fsnotify_destroy_event(group, fsn_event); in fanotify_handle_event() 271 static void fanotify_free_event(struct fsnotify_event *fsn_event) in fanotify_free_event() argument 275 event = FANOTIFY_E(fsn_event); in fanotify_free_event() 278 if (fanotify_is_perm_event(fsn_event->mask)) { in fanotify_free_event() 280 FANOTIFY_PE(fsn_event)); in fanotify_free_event()
|
D | fanotify_user.c | 119 struct fsnotify_event *fsn_event, in fill_event_metadata() argument 126 group, metadata, fsn_event); in fill_event_metadata() 129 event = container_of(fsn_event, struct fanotify_event_info, fse); in fill_event_metadata() 134 metadata->mask = fsn_event->mask & FAN_ALL_OUTGOING_EVENTS; in fill_event_metadata() 136 if (unlikely(fsn_event->mask & FAN_Q_OVERFLOW)) in fill_event_metadata() 368 struct fsnotify_event *fsn_event; in fanotify_release() local 397 fsn_event = fsnotify_remove_first_event(group); in fanotify_release() 398 if (!(fsn_event->mask & FAN_ALL_PERM_EVENTS)) { in fanotify_release() 400 fsnotify_destroy_event(group, fsn_event); in fanotify_release() 403 FANOTIFY_PE(fsn_event)->response = FAN_ALLOW; in fanotify_release() [all …]
|
/linux-4.19.296/fs/notify/inotify/ |
D | inotify_fsnotify.c | 76 struct fsnotify_event *fsn_event; in inotify_handle_event() local 120 fsn_event = &event->fse; in inotify_handle_event() 121 fsnotify_init_event(fsn_event, inode, mask); in inotify_handle_event() 128 ret = fsnotify_add_event(group, fsn_event, inotify_merge); in inotify_handle_event() 131 fsnotify_destroy_event(group, fsn_event); in inotify_handle_event() 189 static void inotify_free_event(struct fsnotify_event *fsn_event) in inotify_free_event() argument 191 kfree(INOTIFY_E(fsn_event)); in inotify_free_event()
|
D | inotify_user.c | 125 static int round_event_name_len(struct fsnotify_event *fsn_event) in round_event_name_len() argument 129 event = INOTIFY_E(fsn_event); in round_event_name_len() 173 struct fsnotify_event *fsn_event, in copy_event_to_user() argument 182 pr_debug("%s: group=%p event=%p\n", __func__, group, fsn_event); in copy_event_to_user() 184 event = INOTIFY_E(fsn_event); in copy_event_to_user() 190 pad_name_len = round_event_name_len(fsn_event); in copy_event_to_user() 192 inotify_event.mask = inotify_mask_to_arg(fsn_event->mask); in copy_event_to_user() 290 struct fsnotify_event *fsn_event; in inotify_ioctl() local 303 list_for_each_entry(fsn_event, &group->notification_list, in inotify_ioctl() 306 send_len += round_event_name_len(fsn_event); in inotify_ioctl()
|