aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/inotify.h
diff options
context:
space:
mode:
authorAmy Griffis <amy.griffis@hp.com>2006-06-01 16:11:01 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2006-06-20 05:25:18 -0400
commit7c29772288b7026504cfe75bfd90d40fbd1574bf (patch)
treedfc0cfef97c4c5fdbd87bbd9abdbf44bcd21c906 /include/linux/inotify.h
parent2d9048e201bfb67ba21f05e647b1286b8a4a5667 (diff)
[PATCH] inotify (2/5): add name's inode to event handler
When an inotify event includes a dentry name, also include the inode associated with that name. Signed-off-by: Amy Griffis <amy.griffis@hp.com> Acked-by: Robert Love <rml@novell.com> Acked-by: John McCutchan <john@johnmccutchan.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/inotify.h')
-rw-r--r--include/linux/inotify.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/inotify.h b/include/linux/inotify.h
index 68b6e0127de4..e7899e7d83ad 100644
--- a/include/linux/inotify.h
+++ b/include/linux/inotify.h
@@ -91,7 +91,7 @@ struct inotify_watch {
91 91
92struct inotify_operations { 92struct inotify_operations {
93 void (*handle_event)(struct inotify_watch *, u32, u32, u32, 93 void (*handle_event)(struct inotify_watch *, u32, u32, u32,
94 const char *); 94 const char *, struct inode *);
95 void (*destroy_watch)(struct inotify_watch *); 95 void (*destroy_watch)(struct inotify_watch *);
96}; 96};
97 97
@@ -102,7 +102,7 @@ struct inotify_operations {
102extern void inotify_d_instantiate(struct dentry *, struct inode *); 102extern void inotify_d_instantiate(struct dentry *, struct inode *);
103extern void inotify_d_move(struct dentry *); 103extern void inotify_d_move(struct dentry *);
104extern void inotify_inode_queue_event(struct inode *, __u32, __u32, 104extern void inotify_inode_queue_event(struct inode *, __u32, __u32,
105 const char *); 105 const char *, struct inode *);
106extern void inotify_dentry_parent_queue_event(struct dentry *, __u32, __u32, 106extern void inotify_dentry_parent_queue_event(struct dentry *, __u32, __u32,
107 const char *); 107 const char *);
108extern void inotify_unmount_inodes(struct list_head *); 108extern void inotify_unmount_inodes(struct list_head *);
@@ -134,7 +134,8 @@ static inline void inotify_d_move(struct dentry *dentry)
134 134
135static inline void inotify_inode_queue_event(struct inode *inode, 135static inline void inotify_inode_queue_event(struct inode *inode,
136 __u32 mask, __u32 cookie, 136 __u32 mask, __u32 cookie,
137 const char *filename) 137 const char *filename,
138 struct inode *n_inode)
138{ 139{
139} 140}
140 141