Home
last modified time | relevance | path

Searched refs:pidfd_file (Results 1 – 5 of 5) sorted by relevance

/linux/net/core/
H A Dscm.c463 struct file *pidfd_file = NULL; in scm_pidfd_recv() local
482 pidfd = pidfd_prepare(scm->pid, PIDFD_STALE, &pidfd_file); in scm_pidfd_recv()
485 if (pidfd_file) { in scm_pidfd_recv()
487 fput(pidfd_file); in scm_pidfd_recv()
493 if (pidfd_file) in scm_pidfd_recv()
494 fd_install(pidfd, pidfd_file); in scm_pidfd_recv()
H A Dsock.c1914 struct file *pidfd_file = NULL; in sk_getsockopt() local
1935 pidfd = pidfd_prepare(peer_pid, flags, &pidfd_file); in sk_getsockopt()
1943 fput(pidfd_file); in sk_getsockopt()
1948 fd_install(pidfd, pidfd_file); in sk_getsockopt()
/linux/fs/
H A Dpidfs.c1089 struct file *pidfd_file; in pidfs_alloc_file() local
1108 pidfd_file = dentry_open(&path, flags, current_cred()); in pidfs_alloc_file()
1110 if (!IS_ERR(pidfd_file)) in pidfs_alloc_file()
1111 pidfd_file->f_flags |= (flags & PIDFD_THREAD); in pidfs_alloc_file()
1113 return pidfd_file; in pidfs_alloc_file()
/linux/kernel/
H A Dpid.c665 struct file *pidfd_file; in SYSCALL_DEFINE2()
667 pidfd = pidfd_prepare(pid, flags, &pidfd_file);
671 fd_install(pidfd, pidfd_file); in pid_table_root_lookup()
623 struct file *pidfd_file; pidfd_create() local
/linux/fs/notify/fanotify/
H A Dfanotify_user.c842 struct file *f = NULL, *pidfd_file = NULL; in copy_event_to_user() local
924 pidfd = pidfd_prepare(event->pid, 0, &pidfd_file); in copy_event_to_user()
952 if (pidfd_file) in copy_event_to_user()
953 fd_install(pidfd, pidfd_file); in copy_event_to_user()
966 if (pidfd_file) { in copy_event_to_user()
968 fput(pidfd_file); in copy_event_to_user()