2 * Directory notification for Linux
4 * Copyright (C) 2000,2002 Stephen Rothwell
9 struct dnotify_struct {
10 struct dnotify_struct * dn_next;
11 unsigned long dn_mask; /* Events to be notified
14 struct file * dn_filp;
18 extern void __inode_dir_notify(struct inode *, unsigned long);
19 extern void dnotify_flush(struct file *filp, fl_owner_t id);
20 extern int fcntl_dirnotify(int, struct file *, unsigned long);
21 void dnotify_parent(struct dentry *dentry, unsigned long event);
23 static inline void inode_dir_notify(struct inode *inode, unsigned long event)
25 if ((inode)->i_dnotify_mask & (event))
26 __inode_dir_notify(inode, event);