2 * Directory notification for Linux
4 * Copyright 2000 (C) Stephen Rothwell
7 struct dnotify_struct
{
8 struct dnotify_struct
* dn_next
;
10 unsigned long dn_mask
; /* Events to be notified
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
);