- Kai Germaschewski: ISDN update (including Makefiles)
[davej-history.git] / include / linux / dnotify.h
blob5e231462b6451159c5054ea93e0332e2a60743d8
1 /*
2 * Directory notification for Linux
4 * Copyright 2000 (C) Stephen Rothwell
5 */
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;
16 #define DNOTIFY_MAGIC 0x444E4F54
18 extern void __inode_dir_notify(struct inode *, unsigned long);
19 extern int fcntl_dirnotify(int, struct file *, unsigned long);
21 static inline void inode_dir_notify(struct inode *inode, unsigned long event)
23 if ((inode)->i_dnotify_mask & (event))
24 __inode_dir_notify(inode, event);