/kernel/linux/linux-5.10/fs/notify/inotify/ |
H A D | inotify_fsnotify.c | 64 struct fsnotify_event *fsn_event; in inotify_handle_inode_event() local 116 fsn_event = &event->fse; in inotify_handle_inode_event() 117 fsnotify_init_event(fsn_event, 0); in inotify_handle_inode_event() 125 ret = fsnotify_add_event(group, fsn_event, inotify_merge); in inotify_handle_inode_event() 128 fsnotify_destroy_event(group, fsn_event); in inotify_handle_inode_event() 186 static void inotify_free_event(struct fsnotify_event *fsn_event) in inotify_free_event() argument 188 kfree(INOTIFY_E(fsn_event)); in inotify_free_event()
|
H A D | inotify_user.c | 117 static int round_event_name_len(struct fsnotify_event *fsn_event) in round_event_name_len() argument 121 event = INOTIFY_E(fsn_event); in round_event_name_len() 165 struct fsnotify_event *fsn_event, in copy_event_to_user() 174 pr_debug("%s: group=%p event=%p\n", __func__, group, fsn_event); in copy_event_to_user() 176 event = INOTIFY_E(fsn_event); in copy_event_to_user() 182 pad_name_len = round_event_name_len(fsn_event); in copy_event_to_user() 282 struct fsnotify_event *fsn_event; in inotify_ioctl() local 295 list_for_each_entry(fsn_event, &group->notification_list, in inotify_ioctl() 298 send_len += round_event_name_len(fsn_event); in inotify_ioctl() 164 copy_event_to_user(struct fsnotify_group *group, struct fsnotify_event *fsn_event, char __user *buf) copy_event_to_user() argument
|
/kernel/linux/linux-6.6/fs/notify/inotify/ |
H A D | inotify_fsnotify.c | 65 struct fsnotify_event *fsn_event; in inotify_handle_inode_event() local 117 fsn_event = &event->fse; in inotify_handle_inode_event() 118 fsnotify_init_event(fsn_event); in inotify_handle_inode_event() 126 ret = fsnotify_add_event(group, fsn_event, inotify_merge); in inotify_handle_inode_event() 129 fsnotify_destroy_event(group, fsn_event); in inotify_handle_inode_event() 188 struct fsnotify_event *fsn_event) in inotify_free_event() 190 kfree(INOTIFY_E(fsn_event)); in inotify_free_event() 187 inotify_free_event(struct fsnotify_group *group, struct fsnotify_event *fsn_event) inotify_free_event() argument
|
H A D | inotify_user.c | 154 static int round_event_name_len(struct fsnotify_event *fsn_event) in round_event_name_len() argument 158 event = INOTIFY_E(fsn_event); in round_event_name_len() 201 struct fsnotify_event *fsn_event, in copy_event_to_user() 210 pr_debug("%s: group=%p event=%p\n", __func__, group, fsn_event); in copy_event_to_user() 212 event = INOTIFY_E(fsn_event); in copy_event_to_user() 218 pad_name_len = round_event_name_len(fsn_event); in copy_event_to_user() 318 struct fsnotify_event *fsn_event; in inotify_ioctl() local 331 list_for_each_entry(fsn_event, &group->notification_list, in inotify_ioctl() 334 send_len += round_event_name_len(fsn_event); in inotify_ioctl() 200 copy_event_to_user(struct fsnotify_group *group, struct fsnotify_event *fsn_event, char __user *buf) copy_event_to_user() argument
|
/kernel/linux/linux-6.6/fs/notify/fanotify/ |
H A D | fanotify.c | 875 struct fsnotify_event *fsn_event) in fanotify_insert_event() 877 struct fanotify_event *event = FANOTIFY_E(fsn_event); in fanotify_insert_event() 900 struct fsnotify_event *fsn_event; in fanotify_handle_event() local 965 fsn_event = &event->fse; in fanotify_handle_event() 966 ret = fsnotify_insert_event(group, fsn_event, fanotify_merge, in fanotify_handle_event() 972 fsnotify_destroy_event(group, fsn_event); in fanotify_handle_event() 1032 struct fsnotify_event *fsn_event) in fanotify_free_event() 1036 event = FANOTIFY_E(fsn_event); in fanotify_free_event() 874 fanotify_insert_event(struct fsnotify_group *group, struct fsnotify_event *fsn_event) fanotify_insert_event() argument 1031 fanotify_free_event(struct fsnotify_group *group, struct fsnotify_event *fsn_event) fanotify_free_event() argument
|
H A D | fanotify_user.c | 220 struct fsnotify_event *fsn_event; in get_one_event() local 226 fsn_event = fsnotify_peek_first_event(group); in get_one_event() 227 if (!fsn_event) in get_one_event() 230 event = FANOTIFY_E(fsn_event); in get_one_event() 908 struct fsnotify_event *fsn_event; in fanotify_release() local 937 while ((fsn_event = fsnotify_remove_first_event(group))) { in fanotify_release() 938 struct fanotify_event *event = FANOTIFY_E(fsn_event); in fanotify_release() 942 fsnotify_destroy_event(group, fsn_event); in fanotify_release() 963 struct fsnotify_event *fsn_event; in fanotify_ioctl() local 975 list_for_each_entry(fsn_event, in fanotify_ioctl() [all...] |
/kernel/linux/linux-5.10/fs/notify/fanotify/ |
H A D | fanotify.c | 662 struct fsnotify_event *fsn_event; in fanotify_handle_event() local 723 fsn_event = &event->fse; in fanotify_handle_event() 724 ret = fsnotify_add_event(group, fsn_event, fanotify_merge); in fanotify_handle_event() 729 fsnotify_destroy_event(group, fsn_event); in fanotify_handle_event() 778 static void fanotify_free_event(struct fsnotify_event *fsn_event) in fanotify_free_event() argument 782 event = FANOTIFY_E(fsn_event); in fanotify_free_event()
|
H A D | fanotify_user.c | 631 struct fsnotify_event *fsn_event; in fanotify_ioctl() local 643 list_for_each_entry(fsn_event, &group->notification_list, list) in fanotify_ioctl()
|