]>
Commit | Line | Data |
---|---|---|
63c882a0 EP |
1 | #include <linux/fsnotify_backend.h> |
2 | #include <linux/inotify.h> | |
3 | #include <linux/slab.h> /* struct kmem_cache */ | |
4 | ||
7053aee2 JK |
5 | struct inotify_event_info { |
6 | struct fsnotify_event fse; | |
63c882a0 | 7 | int wd; |
7053aee2 JK |
8 | u32 sync_cookie; |
9 | int name_len; | |
10 | char name[]; | |
63c882a0 EP |
11 | }; |
12 | ||
000285de EP |
13 | struct inotify_inode_mark { |
14 | struct fsnotify_mark fsn_mark; | |
63c882a0 EP |
15 | int wd; |
16 | }; | |
17 | ||
7053aee2 JK |
18 | static inline struct inotify_event_info *INOTIFY_E(struct fsnotify_event *fse) |
19 | { | |
20 | return container_of(fse, struct inotify_event_info, fse); | |
21 | } | |
22 | ||
000285de | 23 | extern void inotify_ignored_and_remove_idr(struct fsnotify_mark *fsn_mark, |
528da3e9 | 24 | struct fsnotify_group *group); |
7053aee2 JK |
25 | extern int inotify_handle_event(struct fsnotify_group *group, |
26 | struct inode *inode, | |
27 | struct fsnotify_mark *inode_mark, | |
28 | struct fsnotify_mark *vfsmount_mark, | |
29 | u32 mask, void *data, int data_type, | |
45a22f4c | 30 | const unsigned char *file_name, u32 cookie); |
63c882a0 EP |
31 | |
32 | extern const struct fsnotify_ops inotify_fsnotify_ops; |