Lines Matching refs:file
531 if (!f.file) in pidfd_get_pid()
534 pid = pidfd_pid(f.file); in pidfd_get_pid()
537 *flags = f.file->f_flags; in pidfd_get_pid()
669 static struct file *__pidfd_fget(struct task_struct *task, int fd) in __pidfd_fget()
671 struct file *file; in __pidfd_fget() local
679 file = fget_task(task, fd); in __pidfd_fget()
681 file = ERR_PTR(-EPERM); in __pidfd_fget()
685 return file ?: ERR_PTR(-EBADF); in __pidfd_fget()
691 struct file *file; in pidfd_getfd() local
698 file = __pidfd_fget(task, fd); in pidfd_getfd()
700 if (IS_ERR(file)) in pidfd_getfd()
701 return PTR_ERR(file); in pidfd_getfd()
703 ret = receive_fd(file, O_CLOEXEC); in pidfd_getfd()
704 fput(file); in pidfd_getfd()
737 if (!f.file) in SYSCALL_DEFINE3()
740 pid = pidfd_pid(f.file); in SYSCALL_DEFINE3()