1 /*
2 * Directory notification for Linux
3 *
4 * Copyright 2000 (C) Stephen Rothwell
5 */
6
7 struct dnotify_struct {
8 struct dnotify_struct * dn_next;
9 int dn_magic;
10 unsigned long dn_mask; /* Events to be notified
11 see linux/fcntl.h */
12 int dn_fd;
13 struct file * dn_filp;
14 };
15
16 #define DNOTIFY_MAGIC 0x444E4F54
17
18 extern void __inode_dir_notify(struct inode *, unsigned long);
19 extern int fcntl_dirnotify(int, struct file *, unsigned long);
20
21 static inline void inode_dir_notify(struct inode *inode, unsigned long event)
22 {
23 if ((inode)->i_dnotify_mask & (event))
24 __inode_dir_notify(inode, event);
25 }
26
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.