Searched refs:pidfd_file (Results 1 – 6 of 6) sorted by relevance
| /linux/include/net/ |
| A D | scm.h | 138 struct file *pidfd_file = NULL; in scm_pidfd_recv() local 157 pidfd = pidfd_prepare(scm->pid, 0, &pidfd_file); in scm_pidfd_recv() 160 if (pidfd_file) { in scm_pidfd_recv() 162 fput(pidfd_file); in scm_pidfd_recv() 168 if (pidfd_file) in scm_pidfd_recv() 169 fd_install(pidfd, pidfd_file); in scm_pidfd_recv()
|
| /linux/fs/ |
| A D | pidfs.c | 399 struct file *pidfd_file; in pidfs_alloc_file() local 407 pidfd_file = dentry_open(&path, flags, current_cred()); in pidfs_alloc_file() 409 return pidfd_file; in pidfs_alloc_file()
|
| /linux/kernel/ |
| A D | pid.c | 606 struct file *pidfd_file; in pidfd_create() local 608 pidfd = pidfd_prepare(pid, flags, &pidfd_file); in pidfd_create() 612 fd_install(pidfd, pidfd_file); in pidfd_create()
|
| A D | fork.c | 2007 struct file *pidfd_file; in __pidfd_prepare() local 2013 pidfd_file = pidfs_alloc_file(pid, flags | O_RDWR); in __pidfd_prepare() 2014 if (IS_ERR(pidfd_file)) { in __pidfd_prepare() 2016 return PTR_ERR(pidfd_file); in __pidfd_prepare() 2022 pidfd_file->f_flags |= (flags & PIDFD_THREAD); in __pidfd_prepare() 2023 *ret = pidfd_file; in __pidfd_prepare()
|
| /linux/fs/notify/fanotify/ |
| A D | fanotify_user.c | 665 struct file *f = NULL, *pidfd_file = NULL; in copy_event_to_user() local 720 pidfd = pidfd_prepare(event->pid, 0, &pidfd_file); in copy_event_to_user() 753 if (pidfd_file) in copy_event_to_user() 754 fd_install(pidfd, pidfd_file); in copy_event_to_user() 766 fput(pidfd_file); in copy_event_to_user()
|
| /linux/net/core/ |
| A D | sock.c | 1859 struct file *pidfd_file = NULL; in sk_getsockopt() local 1872 pidfd = pidfd_prepare(peer_pid, 0, &pidfd_file); in sk_getsockopt() 1880 fput(pidfd_file); in sk_getsockopt() 1885 fd_install(pidfd, pidfd_file); in sk_getsockopt()
|
Completed in 24 milliseconds