Searched refs:pidfd_file (Results 1 - 5 of 5) sorted by relevance
/kernel/linux/linux-6.6/include/net/ |
H A D | scm.h | 126 struct file *pidfd_file = NULL; in scm_pidfd_recv() local 145 pidfd = pidfd_prepare(scm->pid, 0, &pidfd_file); in scm_pidfd_recv() 148 if (pidfd_file) { in scm_pidfd_recv() 150 fput(pidfd_file); in scm_pidfd_recv() 156 if (pidfd_file) in scm_pidfd_recv() 157 fd_install(pidfd, pidfd_file); in scm_pidfd_recv()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | pid.c | 601 struct file *pidfd_file; in pidfd_create() local 603 pidfd = pidfd_prepare(pid, flags, &pidfd_file); in pidfd_create() 607 fd_install(pidfd, pidfd_file); in pidfd_create()
|
H A D | fork.c | 2116 * __pidfd_prepare - allocate a new pidfd_file and reserve a pidfd 2146 struct file *pidfd_file; in __pidfd_prepare() local 2155 pidfd_file = anon_inode_getfile("[pidfd]", &pidfd_fops, pid, in __pidfd_prepare() 2157 if (IS_ERR(pidfd_file)) { in __pidfd_prepare() 2159 return PTR_ERR(pidfd_file); in __pidfd_prepare() 2161 get_pid(pid); /* held by pidfd_file now */ in __pidfd_prepare() 2162 *ret = pidfd_file; in __pidfd_prepare() 2167 * pidfd_prepare - allocate a new pidfd_file and reserve a pidfd
|
/kernel/linux/linux-6.6/fs/notify/fanotify/ |
H A D | fanotify_user.c | 666 struct file *f = NULL, *pidfd_file = NULL; in copy_event_to_user() local 721 pidfd = pidfd_prepare(event->pid, 0, &pidfd_file); in copy_event_to_user() 754 if (pidfd_file) in copy_event_to_user() 755 fd_install(pidfd, pidfd_file); in copy_event_to_user() 767 fput(pidfd_file); in copy_event_to_user()
|
/kernel/linux/linux-6.6/net/core/ |
H A D | sock.c | 1780 struct file *pidfd_file = NULL; in sk_getsockopt() local 1793 pidfd = pidfd_prepare(peer_pid, 0, &pidfd_file); in sk_getsockopt() 1801 fput(pidfd_file); in sk_getsockopt() 1806 fd_install(pidfd, pidfd_file); in sk_getsockopt()
|
Completed in 13 milliseconds