/kernel/ |
D | pid.c | 524 struct pid *pidfd_get_pid(unsigned int fd, unsigned int *flags) in pidfd_get_pid() argument 526 struct fd f; in pidfd_get_pid() 529 f = fdget(fd); in pidfd_get_pid() 559 int fd; in pidfd_create() local 561 fd = anon_inode_getfd("[pidfd]", &pidfd_fops, get_pid(pid), in pidfd_create() 563 if (fd < 0) in pidfd_create() 566 return fd; in pidfd_create() 587 int fd; in SYSCALL_DEFINE2() local 601 fd = pidfd_create(p, flags); in SYSCALL_DEFINE2() 603 fd = -EINVAL; in SYSCALL_DEFINE2() [all …]
|
D | taskstats.c | 392 u32 fd; in cgroupstats_user_cmd() local 393 struct fd f; in cgroupstats_user_cmd() 399 fd = nla_get_u32(info->attrs[CGROUPSTATS_CMD_ATTR_FD]); in cgroupstats_user_cmd() 400 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 | watch_queue.c | 666 struct watch_queue *get_watch_queue(int fd) in get_watch_queue() argument 670 struct fd f; in get_watch_queue() 672 f = fdget(fd); in get_watch_queue()
|
D | nsproxy.c | 532 SYSCALL_DEFINE2(setns, int, fd, int, flags) in SYSCALL_DEFINE2() argument 539 file = fget(fd); in SYSCALL_DEFINE2()
|
D | fork.c | 2993 struct files_struct *fd = current->files; in unshare_fd() local 2997 (fd && atomic_read(&fd->count) > 1)) { in unshare_fd() 2998 *new_fdp = dup_fd(fd, max_fds, &error); in unshare_fd() 3017 struct files_struct *fd, *new_fd = NULL; in ksys_unshare() local 3099 fd = current->files; in ksys_unshare() 3101 new_fd = fd; in ksys_unshare()
|
D | audit.h | 185 int fd; member
|
D | seccomp.c | 122 int fd; member 1073 addfd->ret = receive_fd_replace(addfd->fd, addfd->file, addfd->flags); in seccomp_handle_addfd() 1595 kaddfd.fd = (addfd.flags & SECCOMP_ADDFD_FLAG_SETFD) ? in seccomp_notify_addfd()
|
D | auditsc.c | 1355 audit_log_format(ab, "fd=%d flags=0x%x", context->mmap.fd, in show_special() 2591 void __audit_mmap_fd(int fd, int flags) in __audit_mmap_fd() argument 2594 context->mmap.fd = fd; in __audit_mmap_fd()
|
D | sys.c | 1864 static int prctl_set_mm_exe_file(struct mm_struct *mm, unsigned int fd) in prctl_set_mm_exe_file() argument 1866 struct fd exe; in prctl_set_mm_exe_file() 1871 exe = fdget(fd); in prctl_set_mm_exe_file()
|
D | module.c | 4231 SYSCALL_DEFINE3(finit_module, int, fd, const char __user *, uargs, int, flags) in SYSCALL_DEFINE3() argument 4241 pr_debug("finit_module: fd=%d, uargs=%p, flags=%i\n", fd, uargs, flags); in SYSCALL_DEFINE3() 4247 err = kernel_read_file_from_fd(fd, 0, &hdr, INT_MAX, NULL, in SYSCALL_DEFINE3()
|
D | signal.c | 3765 struct fd f; in SYSCALL_DEFINE4()
|
/kernel/bpf/ |
D | task_iter.c | 135 u32 fd; member 145 int curr_fd = info->fd; in task_file_seq_get_next() 155 curr_fd = info->fd; in task_file_seq_get_next() 169 info->fd = 0; in task_file_seq_get_next() 176 curr_fd = info->fd; in task_file_seq_get_next() 195 info->fd = curr_fd; in task_file_seq_get_next() 206 info->fd = 0; in task_file_seq_get_next() 230 ++info->fd; in task_file_seq_next() 238 u32 fd __aligned(8); 243 struct task_struct *task, u32 fd, in DEFINE_BPF_ITER_FUNC() argument [all …]
|
D | bpf_inode_storage.c | 107 int fd; in bpf_fd_inode_storage_lookup_elem() local 109 fd = *(int *)key; in bpf_fd_inode_storage_lookup_elem() 110 f = fget_raw(fd); in bpf_fd_inode_storage_lookup_elem() 124 int fd; in bpf_fd_inode_storage_update_elem() local 126 fd = *(int *)key; in bpf_fd_inode_storage_update_elem() 127 f = fget_raw(fd); in bpf_fd_inode_storage_update_elem() 158 int fd, err; in bpf_fd_inode_storage_delete_elem() local 160 fd = *(int *)key; in bpf_fd_inode_storage_delete_elem() 161 f = fget_raw(fd); in bpf_fd_inode_storage_delete_elem()
|
D | syscall.c | 172 static int bpf_map_update_value(struct bpf_map *map, struct fd f, void *key, in bpf_map_update_value() 535 static fmode_t map_get_sys_perms(struct bpf_map *map, struct fd f) in map_get_sys_perms() 918 struct bpf_map *__bpf_map_get(struct fd f) in __bpf_map_get() 945 struct fd f = fdget(ufd); in bpf_map_get() 960 struct fd f = fdget(ufd); in bpf_map_get_with_uref() 1024 struct fd f; in map_lookup_elem() 1091 struct fd f; in map_update_elem() 1155 struct fd f; in map_delete_elem() 1212 struct fd f; in map_get_next_key() 1334 struct fd f; in generic_map_update_batch() [all …]
|
D | cpumap.c | 96 value_size != offsetofend(struct bpf_cpumap_val, bpf_prog.fd)) || in cpu_map_alloc() 395 static int __cpu_map_load_bpf_program(struct bpf_cpu_map_entry *rcpu, int fd) in __cpu_map_load_bpf_program() argument 399 prog = bpf_prog_get_type(fd, BPF_PROG_TYPE_XDP); in __cpu_map_load_bpf_program() 417 int numa, err, i, fd = value->bpf_prog.fd; in __cpu_map_entry_alloc() local 453 if (fd > 0 && __cpu_map_load_bpf_program(rcpu, fd)) in __cpu_map_entry_alloc()
|
D | bpf_iter.c | 592 int err, fd; in bpf_iter_new_fd() local 598 fd = get_unused_fd_flags(flags); in bpf_iter_new_fd() 599 if (fd < 0) in bpf_iter_new_fd() 600 return fd; in bpf_iter_new_fd() 613 fd_install(fd, file); in bpf_iter_new_fd() 614 return fd; in bpf_iter_new_fd() 619 put_unused_fd(fd); in bpf_iter_new_fd()
|
D | reuseport_array.c | 258 int err, fd; in bpf_fd_reuseport_array_update_elem() local 271 fd = fd64; in bpf_fd_reuseport_array_update_elem() 273 fd = *(int *)value; in bpf_fd_reuseport_array_update_elem() 276 socket = sockfd_lookup(fd, &err); in bpf_fd_reuseport_array_update_elem()
|
D | map_in_map.c | 13 struct fd f; in bpf_map_meta_alloc() 86 struct fd f; in bpf_map_fd_get_ptr()
|
D | arraymap.c | 798 struct file *map_file, int fd) in prog_fd_array_get_ptr() argument 801 struct bpf_prog *prog = bpf_prog_get(fd); in prog_fd_array_get_ptr() 1117 struct file *map_file, int fd) in perf_event_fd_array_get_ptr() argument 1124 perf_file = perf_event_get(fd); in perf_event_fd_array_get_ptr() 1193 int fd) in cgroup_fd_array_get_ptr() argument 1195 return cgroup_get_from_fd(fd); in cgroup_fd_array_get_ptr()
|
D | devmap.c | 121 valsize != offsetofend(struct bpf_devmap_val, bpf_prog.fd)) || in dev_map_init_map() 614 if (val->bpf_prog.fd > 0) { in __dev_map_alloc_node() 615 prog = bpf_prog_get_type_dev(val->bpf_prog.fd, in __dev_map_alloc_node() 665 if (val.bpf_prog.fd > 0) in __dev_map_update_elem()
|
D | btf.c | 5482 struct btf *btf_get_by_fd(int fd) in btf_get_by_fd() argument 5485 struct fd f; in btf_get_by_fd() 5487 f = fdget(fd); in btf_get_by_fd() 5539 int fd; in btf_get_fd_by_id() local 5550 fd = __btf_new_fd(btf); in btf_get_fd_by_id() 5551 if (fd < 0) in btf_get_fd_by_id() 5554 return fd; in btf_get_fd_by_id()
|
D | verifier.c | 10557 struct fd f; in resolve_pseudo_ldimm64()
|
/kernel/events/ |
D | core.c | 943 static inline int perf_cgroup_connect(int fd, struct perf_event *event, in perf_cgroup_connect() argument 949 struct fd f = fdget(fd); in perf_cgroup_connect() 5540 static inline int perf_fget_light(int fd, struct fd *p) in perf_fget_light() argument 5542 struct fd f = fdget(fd); in perf_fget_light() 5603 struct fd output; in _perf_ioctl() 6338 static int perf_fasync(int fd, struct file *filp, int on) in perf_fasync() argument 6345 retval = fasync_helper(fd, filp, on, &event->fasync); in perf_fasync() 11785 struct fd group = {NULL, 0}; in SYSCALL_DEFINE5() 12651 struct file *perf_event_get(unsigned int fd) in perf_event_get() argument 12653 struct file *file = fget(fd); in perf_event_get()
|
/kernel/cgroup/ |
D | cgroup.c | 6566 struct cgroup *cgroup_get_from_fd(int fd) in cgroup_get_from_fd() argument 6571 f = fget_raw(fd); in cgroup_get_from_fd()
|