/linux-master/net/core/ |
H A D | bpf_sk_storage.c | 84 int fd, err; local 86 fd = *(int *)key; 87 sock = sockfd_lookup(fd, &err); 102 int fd, err; local 104 fd = *(int *)key; 105 sock = sockfd_lookup(fd, &err); 120 int fd, err; local 122 fd = *(int *)key; 123 sock = sockfd_lookup(fd, &err);
|
/linux-master/mm/ |
H A D | nommu.c | 1258 unsigned long fd, unsigned long pgoff) 1263 audit_mmap_fd(fd, flags); 1265 file = fget(fd); 1280 unsigned long, fd, unsigned long, pgoff) 1282 return ksys_mmap_pgoff(addr, len, prot, flags, fd, pgoff); 1291 unsigned long fd; member in struct:mmap_arg_struct 1304 return ksys_mmap_pgoff(a.addr, a.len, a.prot, a.flags, a.fd, 1256 ksys_mmap_pgoff(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long pgoff) argument
|
H A D | mmap.c | 1397 unsigned long fd, unsigned long pgoff) 1403 audit_mmap_fd(fd, flags); 1404 file = fget(fd); 1442 unsigned long, fd, unsigned long, pgoff) 1444 return ksys_mmap_pgoff(addr, len, prot, flags, fd, pgoff); 1453 unsigned long fd; member in struct:mmap_arg_struct 1466 return ksys_mmap_pgoff(a.addr, a.len, a.prot, a.flags, a.fd, 1395 ksys_mmap_pgoff(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long pgoff) argument
|
H A D | filemap.c | 4331 SYSCALL_DEFINE4(cachestat, unsigned int, fd, 4335 struct fd f = fdget(fd);
|
/linux-master/kernel/ |
H A D | seccomp.c | 108 * @fd: The fd number to install it at. If the fd number is -1, it means the 109 * installing process should allocate the fd as normal. 114 * @ret: The return value of the installing process. It is set to the fd num 116 * @completion: Indicates that the installing process has completed fd 124 int fd; member in struct:seccomp_kaddfd 874 * - in NEW_LISTENER mode: the fd of the new listener 1067 int fd; local 1075 fd [all...] |
/linux-master/kernel/events/ |
H A D | core.c | 927 static inline int perf_cgroup_connect(int fd, struct perf_event *event, argument 933 struct fd f = fdget(fd); 5873 static inline int perf_fget_light(int fd, struct fd *p) argument 5875 struct fd f = fdget(fd); 5935 struct fd output; 6672 static int perf_fasync(int fd, struct file *filp, int on) argument 6679 retval = fasync_helper(fd, fil 13288 perf_event_get(unsigned int fd) argument [all...] |
/linux-master/kernel/bpf/ |
H A D | verifier.c | 2053 * -3 s<= x s<= -1 implies 0xf...fd u<= x u<= 0xf...ff. 2136 * -3 s<= x s<= -1 implies 0xf...fd u<= x u<= 0xf...ff. 2678 verbose(env, "invalid module BTF fd specified\n"); 2683 verbose(env, "BTF fd for kfunc is not a module BTF\n"); 2722 * of fd index into fd_array, interpreted as u16. 18402 struct fd f; 18404 u32 fd; local 18455 if (copy_from_bpfptr_offset(&fd, env->fd_array, 18456 insn[0].imm * sizeof(fd), 18457 sizeof(fd))) [all...] |
H A D | syscall.c | 330 * rather to the map fd instead, so they have no meaning upon 373 * disappears - even if someone holds an fd to them they are unusable, 830 static fmode_t map_get_sys_perms(struct bpf_map *map, struct fd f) 1278 * on fd availability and access to bpffs, so are dependent on 1399 /* failed to allocate fd. 1421 /* if error is returned, fd is released. 1422 * On success caller should complete fd access with matching fdput() 1424 struct bpf_map *__bpf_map_get(struct fd f) 1451 struct fd f = fdget(ufd); 1467 struct fd 3191 int fd, id; local 3894 int fd; local 4386 int fd; local 4412 int fd; local 5082 u32 fd = attr->task_fd_query.fd; local 5471 int fd; local 5506 int fd; local [all...] |
H A D | btf.c | 7505 struct btf *btf_get_by_fd(int fd) argument 7508 struct fd f; 7510 f = fdget(fd); 7590 int fd; local 7601 fd = __btf_new_fd(btf); 7602 if (fd < 0) 7605 return fd;
|
H A D | arraymap.c | 944 struct file *map_file, int fd) 946 struct bpf_prog *prog = bpf_prog_get(fd); 1223 struct file *map_file, int fd) 1230 perf_file = perf_event_get(fd); 1299 int fd) 1301 return cgroup_get_from_fd(fd); 943 prog_fd_array_get_ptr(struct bpf_map *map, struct file *map_file, int fd) argument 1222 perf_event_fd_array_get_ptr(struct bpf_map *map, struct file *map_file, int fd) argument 1297 cgroup_fd_array_get_ptr(struct bpf_map *map, struct file *map_file , int fd) argument
|
/linux-master/io_uring/ |
H A D | waitid.c | 293 iw->upid = READ_ONCE(sqe->fd);
|
H A D | sqpoll.c | 108 struct fd f; 416 struct fd f;
|
H A D | rsrc.c | 361 int fd, i, err = 0; local 373 copy_from_user(&fd, &fds[done], sizeof(fd))) { 377 if ((fd == IORING_REGISTER_FILES_SKIP || fd == -1) && tag) { 381 if (fd == IORING_REGISTER_FILES_SKIP) 395 if (fd != -1) { 396 struct file *file = fget(fd); 577 int ret, fd; local 583 if (copy_from_user(&fd, 704 int fd, ret; local [all...] |
H A D | register.c | 39 int fd; local 46 if (copy_from_user(&fd, fds, sizeof(*fds))) 53 ev_fd->cq_ev_fd = eventfd_ctx_fdget(fd); 573 SYSCALL_DEFINE4(io_uring_register, unsigned int, fd, unsigned int, opcode, 589 * Ring fd has been registered via IORING_REGISTER_RING_FDS, we 594 if (unlikely(!tctx || fd >= IO_RINGFD_REG_MAX)) 596 fd = array_index_nospec(fd, IO_RINGFD_REG_MAX); 597 file = tctx->registered_rings[fd]; 601 file = fget(fd); [all...] |
H A D | net.c | 1534 int ret, fd; local 1542 fd = __get_unused_fd_flags(accept->flags, accept->nofile); 1543 if (unlikely(fd < 0)) 1544 return fd; 1550 put_unused_fd(fd); 1567 fd_install(fd, file); 1568 ret = fd; 1595 sock->domain = READ_ONCE(sqe->fd); 1614 int ret, fd; local 1617 fd [all...] |
H A D | kbuf.c | 418 tmp = READ_ONCE(sqe->fd); 461 tmp = READ_ONCE(sqe->fd);
|
H A D | io_uring.h | 71 struct file *io_file_get_normal(struct io_kiocb *req, int fd); 72 struct file *io_file_get_fixed(struct io_kiocb *req, int fd,
|
H A D | io_uring.c | 1729 req->file = io_file_get_fixed(req, req->cqe.fd, issue_flags); 1731 req->file = io_file_get_normal(req, req->cqe.fd); 1897 inline struct file *io_file_get_fixed(struct io_kiocb *req, int fd, argument 1906 if (unlikely((unsigned int)fd >= ctx->nr_user_files)) 1908 fd = array_index_nospec(fd, ctx->nr_user_files); 1909 slot = io_fixed_file_slot(&ctx->file_table, fd); 1919 struct file *io_file_get_normal(struct io_kiocb *req, int fd) argument 1921 struct file *file = fget(fd); 1923 trace_io_uring_file_get(req, fd); 3389 int fd; local [all...] |
H A D | fdinfo.c | 104 seq_printf(m, "%5u: opcode:%s, fd:%d, flags:%x, off:%llu, " 107 sq_idx, io_uring_get_opcode(sqe->opcode), sqe->fd,
|
H A D | futex.c | 176 flags = READ_ONCE(sqe->fd); 214 if (unlikely(sqe->fd || sqe->buf_index || sqe->file_index ||
|
H A D | cancel.c | 26 s32 fd; member in struct:io_cancel 154 cancel->fd = READ_ONCE(sqe->fd); 215 req->file = io_file_get_fixed(req, cancel->fd, 218 req->file = io_file_get_normal(req, cancel->fd); 246 struct io_cancel_data *cd, int fd) 253 if (unlikely(fd >= ctx->nr_user_files)) 255 fd = array_index_nospec(fd, ctx->nr_user_files); 256 cd->file = io_file_from_index(&ctx->file_table, fd); 245 __io_sync_cancel(struct io_uring_task *tctx, struct io_cancel_data *cd, int fd) argument [all...] |
/linux-master/init/ |
H A D | do_mounts.c | 5 #include <linux/fd.h>
|
/linux-master/include/uapi/linux/ |
H A D | io_uring.h | 34 __s32 fd; /* file descriptor to do IO on */ member in struct:io_uring_sqe 192 * Register the ring fd in itself for use with 193 * IORING_REGISTER_USE_REGISTERED_RING; return a registered fd index rather 194 * than an fd. 319 * IORING_ASYNC_CANCEL_FD Key off 'fd' for cancelation rather than the 322 * IORING_ASYNC_CANCEL_FD_FIXED 'fd' passed in is a fixed descriptor 391 IORING_MSG_SEND_FD, /* send a registered fd to another ring */ 407 * IORING_FIXED_FD_NO_CLOEXEC Don't mark the fd as O_CLOEXEC 575 /* register/unregister io_uring fd with the ring */ 599 /* flag added to the opcode to use a registered ring fd */ 768 __s32 fd; member in struct:io_uring_sync_cancel_reg [all...] |
H A D | bpf.h | 554 * target process identified by *pid* and *fd*. 556 * If the *pid* and *fd* are associated with a tracepoint, kprobe 575 * by the file descriptor *fd*, and if found, delete the element. 1294 * insn[0].imm: map fd or fd_idx 1305 * insn[0].imm: map fd or fd_idx 1401 /* Flag for value_type_btf_obj_fd, the fd is available */ 1465 __u32 inner_map_fd; /* fd pointing to the inner map */ 1471 __u32 btf_fd; /* fd pointing to a BTF type data */ 1489 __s32 value_type_btf_obj_fd; /* fd pointing to a BTF 1543 __u32 prog_btf_fd; /* fd pointin 1693 __u32 fd; /* input: fd */ member in struct:bpf_attr::__anon2903 6461 int fd; /* prog fd on map write */ member in union:bpf_devmap_val::__anon2956 6474 int fd; /* prog fd on map write */ member in union:bpf_cpumap_val::__anon2957 [all...] |
/linux-master/include/net/9p/ |
H A D | client.h | 115 } fd; member in union:p9_client::__anon2635
|