Searched refs:pidfd_file (Results 1 – 6 of 6) sorted by relevance
| /linux-6.15/include/net/ |
| H 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-6.15/fs/ |
| H A D | pidfs.c | 872 struct file *pidfd_file; in pidfs_alloc_file() local 891 pidfd_file = dentry_open(&path, flags, current_cred()); in pidfs_alloc_file() 893 if (!IS_ERR(pidfd_file)) in pidfs_alloc_file() 894 pidfd_file->f_flags |= (flags & PIDFD_THREAD); in pidfs_alloc_file() 896 return pidfd_file; in pidfs_alloc_file()
|
| /linux-6.15/kernel/ |
| H A D | pid.c | 625 struct file *pidfd_file; in pidfd_create() local 627 pidfd = pidfd_prepare(pid, flags, &pidfd_file); in pidfd_create() 631 fd_install(pidfd, pidfd_file); in pidfd_create()
|
| H A D | fork.c | 2069 struct file *pidfd_file; in __pidfd_prepare() local 2075 pidfd_file = pidfs_alloc_file(pid, flags | O_RDWR); in __pidfd_prepare() 2076 if (IS_ERR(pidfd_file)) in __pidfd_prepare() 2077 return PTR_ERR(pidfd_file); in __pidfd_prepare() 2079 *ret = pidfd_file; in __pidfd_prepare()
|
| /linux-6.15/fs/notify/fanotify/ |
| H A D | fanotify_user.c | 748 struct file *f = NULL, *pidfd_file = NULL; in copy_event_to_user() local 830 pidfd = pidfd_prepare(event->pid, 0, &pidfd_file); in copy_event_to_user() 858 if (pidfd_file) in copy_event_to_user() 859 fd_install(pidfd, pidfd_file); in copy_event_to_user() 872 if (pidfd_file) { in copy_event_to_user() 874 fput(pidfd_file); in copy_event_to_user()
|
| /linux-6.15/net/core/ |
| H A D | sock.c | 1881 struct file *pidfd_file = NULL; in sk_getsockopt() local 1894 pidfd = pidfd_prepare(peer_pid, 0, &pidfd_file); in sk_getsockopt() 1902 fput(pidfd_file); in sk_getsockopt() 1907 fd_install(pidfd, pidfd_file); in sk_getsockopt()
|