• Home
  • Raw
  • Download

Lines Matching refs:mask

29 static inline void fsnotify_name(struct inode *dir, __u32 mask,  in fsnotify_name()  argument
33 fsnotify(mask, child, FSNOTIFY_EVENT_INODE, dir, name, NULL, cookie); in fsnotify_name()
37 __u32 mask) in fsnotify_dirent() argument
39 fsnotify_name(dir, mask, d_inode(dentry), &dentry->d_name, 0); in fsnotify_dirent()
42 static inline void fsnotify_inode(struct inode *inode, __u32 mask) in fsnotify_inode() argument
45 mask |= FS_ISDIR; in fsnotify_inode()
47 fsnotify(mask, inode, FSNOTIFY_EVENT_INODE, NULL, NULL, inode, 0); in fsnotify_inode()
51 static inline int fsnotify_parent(struct dentry *dentry, __u32 mask, in fsnotify_parent() argument
57 mask |= FS_ISDIR; in fsnotify_parent()
68 return __fsnotify_parent(dentry, mask, data, data_type); in fsnotify_parent()
71 return fsnotify(mask, data, data_type, NULL, NULL, inode, 0); in fsnotify_parent()
78 static inline void fsnotify_dentry(struct dentry *dentry, __u32 mask) in fsnotify_dentry() argument
80 fsnotify_parent(dentry, mask, d_inode(dentry), FSNOTIFY_EVENT_INODE); in fsnotify_dentry()
83 static inline int fsnotify_file(struct file *file, __u32 mask) in fsnotify_file() argument
90 return fsnotify_parent(path->dentry, mask, path, FSNOTIFY_EVENT_PATH); in fsnotify_file()
94 static inline int fsnotify_perm(struct file *file, int mask) in fsnotify_perm() argument
99 if (!(mask & (MAY_READ | MAY_OPEN))) in fsnotify_perm()
102 if (mask & MAY_OPEN) { in fsnotify_perm()
111 } else if (mask & MAY_READ) { in fsnotify_perm()
217 __u32 mask = FS_DELETE; in fsnotify_delete() local
220 mask |= FS_ISDIR; in fsnotify_delete()
222 fsnotify_name(dir, mask, inode, &dentry->d_name, 0); in fsnotify_delete()
299 __u32 mask = FS_OPEN; in fsnotify_open() local
302 mask |= FS_OPEN_EXEC; in fsnotify_open()
304 fsnotify_file(file, mask); in fsnotify_open()
312 __u32 mask = (file->f_mode & FMODE_WRITE) ? FS_CLOSE_WRITE : in fsnotify_close() local
315 fsnotify_file(file, mask); in fsnotify_close()
332 __u32 mask = 0; in fsnotify_change() local
335 mask |= FS_ATTRIB; in fsnotify_change()
337 mask |= FS_ATTRIB; in fsnotify_change()
339 mask |= FS_MODIFY; in fsnotify_change()
343 mask |= FS_ATTRIB; in fsnotify_change()
345 mask |= FS_ACCESS; in fsnotify_change()
347 mask |= FS_MODIFY; in fsnotify_change()
350 mask |= FS_ATTRIB; in fsnotify_change()
352 if (mask) in fsnotify_change()
353 fsnotify_dentry(dentry, mask); in fsnotify_change()