initial commit with v2.6.9
[linux-2.6.9-moxart.git] / include / linux / dnotify.h
blob5cffeedac4129222e07e6e8c9cf4aee8e89ace7e
1 /*
2 * Directory notification for Linux
4 * Copyright (C) 2000,2002 Stephen Rothwell
5 */
7 #include <linux/fs.h>
9 struct dnotify_struct {
10 struct dnotify_struct * dn_next;
11 unsigned long dn_mask; /* Events to be notified
12 see linux/fcntl.h */
13 int dn_fd;
14 struct file * dn_filp;
15 fl_owner_t dn_owner;
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);