aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/inotify.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/inotify.h')
-rw-r--r--include/linux/inotify.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/inotify.h b/include/linux/inotify.h
index e7899e7d83ad..e7e7fb7fc778 100644
--- a/include/linux/inotify.h
+++ b/include/linux/inotify.h
@@ -112,11 +112,15 @@ extern u32 inotify_get_cookie(void);
112/* Kernel Consumer API */ 112/* Kernel Consumer API */
113 113
114extern struct inotify_handle *inotify_init(const struct inotify_operations *); 114extern struct inotify_handle *inotify_init(const struct inotify_operations *);
115extern void inotify_init_watch(struct inotify_watch *);
115extern void inotify_destroy(struct inotify_handle *); 116extern void inotify_destroy(struct inotify_handle *);
117extern __s32 inotify_find_watch(struct inotify_handle *, struct inode *,
118 struct inotify_watch **);
116extern __s32 inotify_find_update_watch(struct inotify_handle *, struct inode *, 119extern __s32 inotify_find_update_watch(struct inotify_handle *, struct inode *,
117 u32); 120 u32);
118extern __s32 inotify_add_watch(struct inotify_handle *, struct inotify_watch *, 121extern __s32 inotify_add_watch(struct inotify_handle *, struct inotify_watch *,
119 struct inode *, __u32); 122 struct inode *, __u32);
123extern int inotify_rm_watch(struct inotify_handle *, struct inotify_watch *);
120extern int inotify_rm_wd(struct inotify_handle *, __u32); 124extern int inotify_rm_wd(struct inotify_handle *, __u32);
121extern void get_inotify_watch(struct inotify_watch *); 125extern void get_inotify_watch(struct inotify_watch *);
122extern void put_inotify_watch(struct inotify_watch *); 126extern void put_inotify_watch(struct inotify_watch *);
@@ -163,10 +167,20 @@ static inline struct inotify_handle *inotify_init(const struct inotify_operation
163 return ERR_PTR(-EOPNOTSUPP); 167 return ERR_PTR(-EOPNOTSUPP);
164} 168}
165 169
170static inline void inotify_init_watch(struct inotify_watch *watch)
171{
172}
173
166static inline void inotify_destroy(struct inotify_handle *ih) 174static inline void inotify_destroy(struct inotify_handle *ih)
167{ 175{
168} 176}
169 177
178static inline __s32 inotify_find_watch(struct inotify_handle *ih, struct inode *inode,
179 struct inotify_watch **watchp)
180{
181 return -EOPNOTSUPP;
182}
183
170static inline __s32 inotify_find_update_watch(struct inotify_handle *ih, 184static inline __s32 inotify_find_update_watch(struct inotify_handle *ih,
171 struct inode *inode, u32 mask) 185 struct inode *inode, u32 mask)
172{ 186{
@@ -180,6 +194,12 @@ static inline __s32 inotify_add_watch(struct inotify_handle *ih,
180 return -EOPNOTSUPP; 194 return -EOPNOTSUPP;
181} 195}
182 196
197static inline int inotify_rm_watch(struct inotify_handle *ih,
198 struct inotify_watch *watch)
199{
200 return -EOPNOTSUPP;
201}
202
183static inline int inotify_rm_wd(struct inotify_handle *ih, __u32 wd) 203static inline int inotify_rm_wd(struct inotify_handle *ih, __u32 wd)
184{ 204{
185 return -EOPNOTSUPP; 205 return -EOPNOTSUPP;