1 #ifndef _LINUX_DNOTIFY_H
2 #define _LINUX_DNOTIFY_H
4 * Directory notification for Linux
6 * Copyright (C) 2000,2002 Stephen Rothwell
11 struct dnotify_struct {
12 struct dnotify_struct * dn_next;
13 unsigned long dn_mask;
15 struct file * dn_filp;
24 extern void __inode_dir_notify(struct inode *, unsigned long);
25 extern void dnotify_flush(struct file *, fl_owner_t);
26 extern int fcntl_dirnotify(int, struct file *, unsigned long);
27 extern void dnotify_parent(struct dentry *, unsigned long);
29 static inline void inode_dir_notify(struct inode *inode, unsigned long event)
31 if (inode->i_dnotify_mask & (event))
32 __inode_dir_notify(inode, event);
37 static inline void __inode_dir_notify(struct inode *inode, unsigned long event)
41 static inline void dnotify_flush(struct file *filp, fl_owner_t id)
45 static inline int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg)
50 static inline void dnotify_parent(struct dentry *dentry, unsigned long event)
54 static inline void inode_dir_notify(struct inode *inode, unsigned long event)
58 #endif /* CONFIG_DNOTIFY */
60 #endif /* __KERNEL __ */
62 #endif /* _LINUX_DNOTIFY_H */