190586523SEric Paris #ifndef __FS_NOTIFY_FSNOTIFY_H_ 290586523SEric Paris #define __FS_NOTIFY_FSNOTIFY_H_ 390586523SEric Paris 490586523SEric Paris #include <linux/list.h> 590586523SEric Paris #include <linux/fsnotify.h> 690586523SEric Paris #include <linux/srcu.h> 790586523SEric Paris #include <linux/types.h> 890586523SEric Paris 990586523SEric Paris /* protects reads of fsnotify_groups */ 1090586523SEric Paris extern struct srcu_struct fsnotify_grp_srcu; 1190586523SEric Paris /* all groups which receive fsnotify events */ 1290586523SEric Paris extern struct list_head fsnotify_groups; 1390586523SEric Paris /* all bitwise OR of all event types (FS_*) for all fsnotify_groups */ 1490586523SEric Paris extern __u32 fsnotify_mask; 153be25f49SEric Paris 16*a2d8bc6cSEric Paris /* destroy all events sitting in this groups notification queue */ 17*a2d8bc6cSEric Paris extern void fsnotify_flush_notify(struct fsnotify_group *group); 18*a2d8bc6cSEric Paris 193be25f49SEric Paris /* final kfree of a group */ 203be25f49SEric Paris extern void fsnotify_final_destroy_group(struct fsnotify_group *group); 21*a2d8bc6cSEric Paris 223be25f49SEric Paris /* run the list of all marks associated with inode and flag them to be freed */ 233be25f49SEric Paris extern void fsnotify_clear_marks_by_inode(struct inode *inode); 24c28f7e56SEric Paris /* 25c28f7e56SEric Paris * update the dentry->d_flags of all of inode's children to indicate if inode cares 26c28f7e56SEric Paris * about events that happen to its children. 27c28f7e56SEric Paris */ 28c28f7e56SEric Paris extern void __fsnotify_update_child_dentry_flags(struct inode *inode); 29*a2d8bc6cSEric Paris 30*a2d8bc6cSEric Paris /* allocate and destroy and event holder to attach events to notification/access queues */ 31*a2d8bc6cSEric Paris extern struct fsnotify_event_holder *fsnotify_alloc_event_holder(void); 32*a2d8bc6cSEric Paris extern void fsnotify_destroy_event_holder(struct fsnotify_event_holder *holder); 33*a2d8bc6cSEric Paris 3490586523SEric Paris #endif /* __FS_NOTIFY_FSNOTIFY_H_ */ 35