Searched refs:pidfd_file (Results 1 – 5 of 5) sorted by relevance
| /linux/net/core/ |
| H A D | scm.c | 469 struct file *pidfd_file = NULL; in scm_pidfd_recv() local 488 pidfd = pidfd_prepare(scm->pid, PIDFD_STALE, &pidfd_file); in scm_pidfd_recv() 491 if (pidfd_file) { in scm_pidfd_recv() 493 fput(pidfd_file); in scm_pidfd_recv() 499 if (pidfd_file) in scm_pidfd_recv() 500 fd_install(pidfd, pidfd_file); in scm_pidfd_recv()
|
| H A D | sock.c | 1908 struct file *pidfd_file = NULL; in sk_getsockopt() local 1929 pidfd = pidfd_prepare(peer_pid, flags, &pidfd_file); in sk_getsockopt() 1937 fput(pidfd_file); in sk_getsockopt() 1942 fd_install(pidfd, pidfd_file); in sk_getsockopt()
|
| /linux/fs/ |
| H A D | pidfs.c | 1041 struct file *pidfd_file; in pidfs_alloc_file() local 1060 pidfd_file = dentry_open(&path, flags, current_cred()); in pidfs_alloc_file() 1062 if (!IS_ERR(pidfd_file)) in pidfs_alloc_file() 1063 pidfd_file->f_flags |= (flags & PIDFD_THREAD); in pidfs_alloc_file() 1065 return pidfd_file; in pidfs_alloc_file()
|
| /linux/kernel/ |
| H A D | pid.c | 623 struct file *pidfd_file; in pidfd_create() local 625 pidfd = pidfd_prepare(pid, flags, &pidfd_file); in pidfd_create() 629 fd_install(pidfd, pidfd_file); in pidfd_create()
|
| /linux/fs/notify/fanotify/ |
| H A D | fanotify_user.c | 842 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()
|