/kernel/ |
D | pid.c | 472 int fd; in pidfd_create() local 474 fd = anon_inode_getfd("[pidfd]", &pidfd_fops, get_pid(pid), in pidfd_create() 476 if (fd < 0) in pidfd_create() 479 return fd; in pidfd_create() 500 int fd, ret; in SYSCALL_DEFINE2() local 519 fd = ret ?: pidfd_create(p); in SYSCALL_DEFINE2() 521 return fd; in SYSCALL_DEFINE2()
|
D | taskstats.c | 396 u32 fd; in cgroupstats_user_cmd() local 397 struct fd f; in cgroupstats_user_cmd() 403 fd = nla_get_u32(info->attrs[CGROUPSTATS_CMD_ATTR_FD]); in cgroupstats_user_cmd() 404 f = fdget(fd); in cgroupstats_user_cmd()
|
D | uid16.c | 33 SYSCALL_DEFINE3(fchown16, unsigned int, fd, old_uid_t, user, old_gid_t, group) in SYSCALL_DEFINE3() argument 35 return ksys_fchown(fd, low2highuid(user), low2highgid(group)); in SYSCALL_DEFINE3()
|
D | nsproxy.c | 233 SYSCALL_DEFINE2(setns, int, fd, int, nstype) in SYSCALL_DEFINE2() argument 241 file = proc_ns_fget(fd); in SYSCALL_DEFINE2()
|
D | fork.c | 2802 struct files_struct *fd = current->files; in unshare_fd() local 2806 (fd && atomic_read(&fd->count) > 1)) { in unshare_fd() 2807 *new_fdp = dup_fd(fd, &error); in unshare_fd() 2826 struct files_struct *fd, *new_fd = NULL; in ksys_unshare() local 2908 fd = current->files; in ksys_unshare() 2910 new_fd = fd; in ksys_unshare()
|
D | exit.c | 1473 static struct pid *pidfd_get_pid(unsigned int fd) in pidfd_get_pid() argument 1475 struct fd f; in pidfd_get_pid() 1478 f = fdget(fd); in pidfd_get_pid()
|
D | audit.h | 185 int fd; member
|
D | auditsc.c | 1279 audit_log_format(ab, "fd=%d flags=0x%x", context->mmap.fd, in show_special() 2495 void __audit_mmap_fd(int fd, int flags) in __audit_mmap_fd() argument 2498 context->mmap.fd = fd; in __audit_mmap_fd()
|
D | sys.c | 1814 static int prctl_set_mm_exe_file(struct mm_struct *mm, unsigned int fd) in prctl_set_mm_exe_file() argument 1816 struct fd exe; in prctl_set_mm_exe_file() 1821 exe = fdget(fd); in prctl_set_mm_exe_file()
|
D | module.c | 4005 SYSCALL_DEFINE3(finit_module, int, fd, const char __user *, uargs, int, flags) in SYSCALL_DEFINE3() argument 4016 pr_debug("finit_module: fd=%d, uargs=%p, flags=%i\n", fd, uargs, flags); in SYSCALL_DEFINE3() 4022 err = kernel_read_file_from_fd(fd, &hdr, &size, INT_MAX, in SYSCALL_DEFINE3()
|
D | signal.c | 3712 struct fd f; in SYSCALL_DEFINE4()
|
/kernel/bpf/ |
D | reuseport_array.c | 256 int err, fd; in bpf_fd_reuseport_array_update_elem() local 269 fd = fd64; in bpf_fd_reuseport_array_update_elem() 271 fd = *(int *)value; in bpf_fd_reuseport_array_update_elem() 274 socket = sockfd_lookup(fd, &err); in bpf_fd_reuseport_array_update_elem()
|
D | syscall.c | 359 static fmode_t map_get_sys_perms(struct bpf_map *map, struct fd f) in map_get_sys_perms() 646 struct bpf_map *__bpf_map_get(struct fd f) in __bpf_map_get() 675 struct fd f = fdget(ufd); in bpf_map_get_with_uref() 747 struct fd f; in map_lookup_elem() 882 struct fd f; in map_update_elem() 992 struct fd f; in map_delete_elem() 1044 struct fd f; in map_get_next_key() 1111 struct fd f; in map_lookup_and_delete_elem() 1169 struct fd f; in map_freeze() 1447 static struct bpf_prog *____bpf_prog_get(struct fd f) in ____bpf_prog_get() [all …]
|
D | map_in_map.c | 13 struct fd f; in bpf_map_meta_alloc() 93 struct fd f; in bpf_map_fd_get_ptr()
|
D | arraymap.c | 569 struct file *map_file, int fd) in prog_fd_array_get_ptr() argument 572 struct bpf_prog *prog = bpf_prog_get(fd); in prog_fd_array_get_ptr() 672 struct file *map_file, int fd) in perf_event_fd_array_get_ptr() argument 679 perf_file = perf_event_get(fd); in perf_event_fd_array_get_ptr() 734 int fd) in cgroup_fd_array_get_ptr() argument 736 return cgroup_get_from_fd(fd); in cgroup_fd_array_get_ptr()
|
D | xskmap.c | 220 u32 i = *(u32 *)key, fd = *(u32 *)value; in xsk_map_update_elem() local 230 sock = sockfd_lookup(fd, &err); in xsk_map_update_elem()
|
D | btf.c | 3436 struct btf *btf_get_by_fd(int fd) in btf_get_by_fd() argument 3439 struct fd f; in btf_get_by_fd() 3441 f = fdget(fd); in btf_get_by_fd() 3492 int fd; in btf_get_fd_by_id() local 3503 fd = __btf_new_fd(btf); in btf_get_fd_by_id() 3504 if (fd < 0) in btf_get_fd_by_id() 3507 return fd; in btf_get_fd_by_id()
|
D | verifier.c | 7951 struct fd f; in replace_map_fd_with_map_ptr()
|
/kernel/events/ |
D | core.c | 894 static inline int perf_cgroup_connect(int fd, struct perf_event *event, in perf_cgroup_connect() argument 900 struct fd f = fdget(fd); in perf_cgroup_connect() 5145 static inline int perf_fget_light(int fd, struct fd *p) in perf_fget_light() argument 5147 struct fd f = fdget(fd); in perf_fget_light() 5202 struct fd output; in _perf_ioctl() 5924 static int perf_fasync(int fd, struct file *filp, int on) in perf_fasync() argument 5931 retval = fasync_helper(fd, filp, on, &event->fasync); in perf_fasync() 10912 struct fd group = {NULL, 0}; in SYSCALL_DEFINE5() 11764 struct file *perf_event_get(unsigned int fd) in perf_event_get() argument 11766 struct file *file = fget(fd); in perf_event_get()
|
/kernel/cgroup/ |
D | cgroup.c | 6274 struct cgroup *cgroup_get_from_fd(int fd) in cgroup_get_from_fd() argument 6280 f = fget_raw(fd); in cgroup_get_from_fd()
|