Lines Matching defs:int
57 static int fanotify_fid_info_len(int fh_len, int name_len)
59 int info_len = fh_len;
67 static int fanotify_event_info_len(unsigned int fid_mode,
71 int dir_fh_len = fanotify_event_dir_fh_len(event);
72 int fh_len = fanotify_event_object_fh_len(event);
73 int info_len = 0;
74 int dot_len = 0;
103 unsigned int fid_mode = FAN_GROUP_FLAG(group, FANOTIFY_FID_BITS);
128 static int create_fd(struct fsnotify_group *group, struct path *path,
131 int client_fd;
168 unsigned int response)
184 static int process_access_response(struct fsnotify_group *group,
188 int fd = response_struct->fd;
189 int response = response_struct->response;
228 static int copy_info_to_user(__kernel_fsid_t *fsid, struct fanotify_fh *fh,
229 int info_type, const char *name, size_t name_len,
330 unsigned int fid_mode = FAN_GROUP_FLAG(group, FANOTIFY_FID_BITS);
332 int ret, fd = FAN_NOFD;
333 int info_type = 0;
386 int dot_len = 0;
466 int ret;
549 int ret;
573 static int fanotify_release(struct inode *ignored, struct file *file)
628 static long fanotify_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
633 int ret = -ENOTTY;
646 ret = put_user(send_len, (int __user *) p);
665 static int fanotify_find_path(int dfd, const char __user *filename,
666 struct path *path, unsigned int flags, __u64 mask,
667 unsigned int obj_type)
669 int ret;
692 unsigned int lookup_flags = 0;
720 __u32 mask, unsigned int flags,
721 __u32 umask, int *destroy)
746 static int fanotify_remove_mark(struct fsnotify_group *group,
748 unsigned int flags, __u32 umask)
752 int destroy_mark;
776 static int fanotify_remove_vfsmount_mark(struct fsnotify_group *group,
778 unsigned int flags, __u32 umask)
784 static int fanotify_remove_sb_mark(struct fsnotify_group *group,
786 unsigned int flags, __u32 umask)
792 static int fanotify_remove_inode_mark(struct fsnotify_group *group,
794 unsigned int flags, __u32 umask)
802 unsigned int flags)
822 unsigned int type,
826 int ret;
846 static int fanotify_add_mark(struct fsnotify_group *group,
847 fsnotify_connp_t *connp, unsigned int type,
848 __u32 mask, unsigned int flags,
872 static int fanotify_add_vfsmount_mark(struct fsnotify_group *group,
874 unsigned int flags, __kernel_fsid_t *fsid)
880 static int fanotify_add_sb_mark(struct fsnotify_group *group,
882 unsigned int flags, __kernel_fsid_t *fsid)
888 static int fanotify_add_inode_mark(struct fsnotify_group *group,
890 unsigned int flags, __kernel_fsid_t *fsid)
923 SYSCALL_DEFINE2(fanotify_init, unsigned int, flags, unsigned int, event_f_flags)
926 int f_flags, fd;
928 unsigned int fid_mode = flags & FANOTIFY_FID_BITS;
929 unsigned int class = flags & FANOTIFY_CLASS_BITS;
1052 static int fanotify_test_fid(struct path *path, __kernel_fsid_t *fsid)
1055 int err;
1093 static int fanotify_events_supported(struct path *path, __u64 mask,
1094 unsigned int flags)
1096 unsigned int mark_type = flags & FANOTIFY_MARK_TYPE_BITS;
1127 static int do_fanotify_mark(int fanotify_fd, unsigned int flags, __u64 mask,
1128 int dfd, const char __user *pathname)
1137 unsigned int mark_type = flags & FANOTIFY_MARK_TYPE_BITS;
1139 unsigned int obj_type, fid_mode;
1141 int ret;
1307 SYSCALL_DEFINE5(fanotify_mark, int, fanotify_fd, unsigned int, flags,
1308 __u64, mask, int, dfd,
1317 int, fanotify_fd, unsigned int, flags,
1318 SC_ARG64(mask), int, dfd,
1331 static int __init fanotify_user_setup(void)