Lines Matching refs:fd
134 metadata->fd = FAN_NOFD; in fill_event_metadata()
136 metadata->fd = create_fd(group, event, file); in fill_event_metadata()
137 if (metadata->fd < 0) in fill_event_metadata()
138 ret = metadata->fd; in fill_event_metadata()
146 struct fsnotify_group *group, int fd) in dequeue_event() argument
153 if (event->fd != fd) in dequeue_event()
171 int fd = response_struct->fd; in process_access_response() local
175 fd, response); in process_access_response()
189 if (fd < 0) in process_access_response()
192 event = dequeue_event(group, fd); in process_access_response()
209 int fd, ret; in copy_event_to_user() local
217 fd = fanotify_event_metadata.fd; in copy_event_to_user()
225 FANOTIFY_PE(event)->fd = fd; in copy_event_to_user()
228 if (fd != FAN_NOFD) in copy_event_to_user()
229 fd_install(fd, f); in copy_event_to_user()
233 if (fd != FAN_NOFD) { in copy_event_to_user()
234 put_unused_fd(fd); in copy_event_to_user()
331 struct fanotify_response response = { .fd = -1, .response = -1 }; in fanotify_write()
448 struct fd f = fdget(dfd); in fanotify_find_path()
697 int f_flags, fd; in SYSCALL_DEFINE2() local
746 fd = -ENOMEM; in SYSCALL_DEFINE2()
771 fd = -EINVAL; in SYSCALL_DEFINE2()
776 fd = -EPERM; in SYSCALL_DEFINE2()
785 fd = -EPERM; in SYSCALL_DEFINE2()
793 fd = anon_inode_getfd("[fanotify]", &fanotify_fops, group, f_flags); in SYSCALL_DEFINE2()
794 if (fd < 0) in SYSCALL_DEFINE2()
797 return fd; in SYSCALL_DEFINE2()
801 return fd; in SYSCALL_DEFINE2()
811 struct fd f; in SYSCALL_DEFINE5()