/linux-master/kernel/bpf/ |
H A D | verifier.c | 2044 * -3 s<= x s<= -1 implies 0xf...fd u<= x u<= 0xf...ff. 2127 * -3 s<= x s<= -1 implies 0xf...fd u<= x u<= 0xf...ff. 2666 verbose(env, "invalid module BTF fd specified\n"); 2671 verbose(env, "BTF fd for kfunc is not a module BTF\n"); 2710 * of fd index into fd_array, interpreted as u16. 18226 struct fd f; 18228 u32 fd; local 18279 if (copy_from_bpfptr_offset(&fd, env->fd_array, 18280 insn[0].imm * sizeof(fd), 18281 sizeof(fd))) [all...] |
/linux-master/fs/btrfs/ |
H A D | ioctl.c | 1282 const char *name, unsigned long fd, int subvol, 1312 struct fd src = fdget(fd); 1370 vol_args->name, vol_args->fd, subvol, 1423 vol_args->name, vol_args->fd, subvol, 2126 * to the fd with which this ioctl is called. If constructed path does not 2127 * exist under fd's inode, -EACCES will be returned. 2145 * The subvolume does not exist under fd with which this is 1280 __btrfs_ioctl_snap_create(struct file *file, struct mnt_idmap *idmap, const char *name, unsigned long fd, int subvol, bool readonly, struct btrfs_qgroup_inherit *inherit) argument
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_amdkfd_gpuvm.c | 814 int r, fd; local 820 DRM_RDWR : 0, &fd); 823 dmabuf = dma_buf_get(fd); 824 close_fd(fd); 2404 int amdgpu_amdkfd_gpuvm_import_dmabuf_fd(struct amdgpu_device *adev, int fd, argument 2413 ret = drm_gem_prime_fd_to_handle(&adev->ddev, adev->kfd.client.file, fd,
|
/linux-master/tools/testing/selftests/mm/ |
H A D | split_huge_page_test.c | 58 int fd; local 61 fd = open(path, O_WRONLY); 62 if (fd == -1) 65 numwritten = write(fd, buf, buflen - 1); 66 close(fd); 207 int fd; local 226 fd = open(testfile, O_CREAT|O_WRONLY, 0664); 227 if (fd == -1) { 233 num_written = write(fd, tmpfs_loc, strlen(tmpfs_loc) + 1); 234 close(fd); 299 create_pagecache_thp_and_fd(const char *testfile, size_t fd_size, int *fd, char **addr) argument 364 int fd; local [all...] |
H A D | protection_keys.c | 60 int fd = open(file, O_RDWR); local 68 if (fd < 0) { 74 ret = write(fd, str, strlen(str)); 80 close(fd); 752 int fd; local 772 fd = open(buf, O_RDONLY); 773 if (fd < 0) { 780 err = read(fd, buf, sizeof(buf)-1); 781 close(fd); 821 int fd; local 925 __save_test_fd(int fd) argument [all...] |
/linux-master/net/wireless/ |
H A D | nl80211.c | 5660 struct cfg80211_fils_discovery *fd) 5677 fd->update = true; 5686 fd->tmpl_len = nla_len(tb[NL80211_FILS_DISCOVERY_ATTR_TMPL]); 5687 fd->tmpl = nla_data(tb[NL80211_FILS_DISCOVERY_ATTR_TMPL]); 5688 fd->min_interval = nla_get_u32(tb[NL80211_FILS_DISCOVERY_ATTR_INT_MIN]); 5689 fd->max_interval = nla_get_u32(tb[NL80211_FILS_DISCOVERY_ATTR_INT_MAX]); 5690 fd->update = true; 12159 u32 fd = nla_get_u32(info->attrs[NL80211_ATTR_NETNS_FD]); local 12161 net = get_net_ns_by_fd(fd); 5658 nl80211_parse_fils_discovery(struct cfg80211_registered_device *rdev, struct nlattr *attrs, struct cfg80211_fils_discovery *fd) argument
|
/linux-master/fs/ |
H A D | ioctl.c | 234 struct fd src_file = fdget(srcfd); 365 static int ioctl_fioasync(unsigned int fd, struct file *filp, argument 380 error = filp->f_op->fasync(fd, filp, on); 800 static int do_vfs_ioctl(struct file *filp, unsigned int fd, argument 808 set_close_on_exec(fd, 1); 812 set_close_on_exec(fd, 0); 819 return ioctl_fioasync(fd, filp, argp); 890 SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) 892 struct fd f = fdget(fd); [all...] |
/linux-master/drivers/net/ |
H A D | gtp.c | 1194 static struct sock *gtp_encap_enable_socket(int fd, int type, argument 1202 pr_debug("enable gtp on %d, %d\n", fd, type); 1204 sock = sockfd_lookup(fd, &err); 1206 pr_debug("gtp socket fd=%d not found\n", fd); 1214 pr_debug("socket fd=%d not UDP\n", fd);
|
/linux-master/virt/kvm/ |
H A D | kvm_mm.h | 42 unsigned int fd, loff_t offset); 52 unsigned int fd, loff_t offset) 50 kvm_gmem_bind(struct kvm *kvm, struct kvm_memory_slot *slot, unsigned int fd, loff_t offset) argument
|
H A D | kvm_main.c | 129 * - If the open has been done by a 64bit task, and the KVM fd 4393 int fd; local 4399 fd = get_unused_fd_flags(O_CLOEXEC); 4400 if (fd < 0) 4401 return fd; 4405 put_unused_fd(fd); 4412 fd_install(fd, file); 4414 return fd; 4830 cd->fd = ret; 5084 int fd; local 5449 int r, fd; local [all...] |
/linux-master/tools/testing/selftests/powerpc/papr_vpd/ |
H A D | papr_vpd.c | 34 int fd; local 42 fd = ioctl(devfd, PAPR_VPD_IOC_CREATE_HANDLE, &lc); 44 FAIL_IF(fd < 0); 48 size = lseek(fd, 0, SEEK_END); 54 ssize_t consumed = pread(fd, buf, size, 0); 58 FAIL_IF(read(fd, buf, size) != 0); 59 FAIL_IF(close(fd)); 72 int fd; local 80 fd = ioctl(devfd, PAPR_VPD_IOC_CREATE_HANDLE, &lc); 82 FAIL_IF(fd < 113 int fd; local 158 int fd; local 181 int fd; local 264 int fd; local [all...] |
/linux-master/tools/testing/selftests/kvm/ |
H A D | set_memory_region_test.c | 467 test_invalid_guest_memfd(vm, vm->kvm_fd, 0, "KVM fd should fail"); 468 test_invalid_guest_memfd(vm, vm->fd, 0, "VM's fd should fail");
|
H A D | max_guest_memory_test.c | 168 int max_slots, slot, opt, fd; local 219 fd = kvm_memfd_alloc(slot_size, hugepages); 220 mem = mmap(NULL, slot_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
|
/linux-master/fs/bcachefs/ |
H A D | thread_with_file.c | 27 int ret, fd = -1; local 49 fd = ret; 58 fd_install(fd, file); 59 return fd; 61 if (fd >= 0) 62 put_unused_fd(fd);
|
/linux-master/drivers/usb/gadget/function/ |
H A D | f_fs.c | 1464 static int ffs_dmabuf_attach(struct file *file, int fd) argument 1479 dmabuf = dma_buf_get(fd); 1535 static int ffs_dmabuf_detach(struct file *file, int fd) argument 1544 dmabuf = dma_buf_get(fd); 1595 dmabuf = dma_buf_get(req->fd); 1728 int fd; local 1730 if (copy_from_user(&fd, (void __user *)value, sizeof(fd))) { 1735 return ffs_dmabuf_attach(file, fd); 1739 int fd; local [all...] |
/linux-master/drivers/android/ |
H A D | binder.c | 1543 * binder_free_txn_fixups() - free unprocessed fd fixups 1548 * fd fixups and fput the file structs. It is safe to 1805 * binder_validate_fixup() - validates pointer/fd fixups happen in order. 1889 * @fd: fd to close 1923 * @fd: file-descriptor to close 1928 static void binder_deferred_fd_close(int fd) argument 1936 twcb->file = file_close_fd(fd); 2030 * delivered, the new fd was never allocated so 2053 * The fd fixup 2096 u32 fd; local 2266 binder_translate_fd(u32 fd, binder_size_t fd_offset, struct binder_transaction *t, struct binder_thread *thread, struct binder_transaction *in_reply_to) argument 2627 u32 fd; local 4351 int fd = get_unused_fd_flags(O_CLOEXEC); local [all...] |
/linux-master/arch/x86/kvm/svm/ |
H A D | svm.h | 84 int fd; /* SEV device fd */ member in struct:kvm_sev_info
|
H A D | sev.c | 308 static int __sev_issue_cmd(int fd, int id, void *data, int *error) argument 310 struct fd f; 313 f = fdget(fd); 327 return __sev_issue_cmd(sev->fd, id, data, error); 393 sev->fd = argp->sev_fd; 1470 sev->fd = argp->sev_fd; 1797 struct fd f = fdget(source_fd); 2079 struct fd f = fdget(source_fd); 2122 mirror_sev->fd = source_sev->fd; [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | udpgso.c | 281 static void set_pmtu_discover(int fd, bool is_ipv4) argument 295 if (setsockopt(fd, level, name, &val, sizeof(val))) 299 static unsigned int get_path_mtu(int fd, bool is_ipv4) argument 307 ret = getsockopt(fd, SOL_IP, IP_MTU, &mtu, &vallen); 309 ret = getsockopt(fd, SOL_IPV6, IPV6_MTU, &mtu, &vallen); 319 static bool __send_one(int fd, struct msghdr *msg, int flags) argument 323 ret = sendmsg(fd, msg, flags); 338 static bool send_one(int fd, int len, int gso_len, argument 369 if (!__send_one(fd, &msg, MSG_MORE)) 376 return __send_one(fd, 379 recv_one(int fd, int flags) argument [all...] |
/linux-master/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | setup.c | 115 int fd; local 117 fd = open(netns_path, O_RDONLY); 118 if (fd < 0) 120 return fd; 131 void switch_ns(int fd) argument 133 if (setns(fd, CLONE_NEWNET))
|
/linux-master/tools/include/uapi/linux/ |
H A D | kvm.h | 598 __s32 fd; member in struct:kvm_ioeventfd 650 #define KVM_CREATE_VM _IO(KVMIO, 0x01) /* returns a VM fd */ 996 __u32 fd; member in struct:kvm_irqfd 1099 __u32 fd; /* out: device handle */ member in struct:kvm_create_device 1155 * a vcpu fd. 1238 /* ioctl for vm fd */ 1450 * by vm/vcpu stats fd. 1452 * pointd by vm/vcpu stats fd. 1454 * pointed by vm/vcpu stats fd. 1456 * This is the header userspace needs to read from stats fd befor [all...] |
/linux-master/tools/arch/x86/include/uapi/asm/ |
H A D | kvm.h | 460 /* attributes for system fd (group 0) */ 596 __s32 fd; member in struct:kvm_xen_hvm_attr::__anon140::__anon142::__anon143::__anon145 816 __s32 fd; member in struct:kvm_hyperv_eventfd
|
/linux-master/net/unix/ |
H A D | af_unix.c | 18 * Marty Leisner : Fixes to fd passing 1845 * Dequeing a candidate via recvmsg would install it into an fd, but 1850 * yet does install the socket into an fd. The following lock/unlock 1853 * an fd. 1860 * installing the fd. 3067 int fd; local 3081 fd = get_unused_fd_flags(O_CLOEXEC); 3082 if (fd < 0) 3087 put_unused_fd(fd); 3088 fd [all...] |
/linux-master/net/core/ |
H A D | dev.c | 9581 int err, fd; local 9616 fd = bpf_link_settle(&link_primer); 9619 return fd; 9633 * @fd: new program fd or negative value to clear 9634 * @expected_fd: old program fd that userspace expects to replace or clear 9640 int fd, int expected_fd, u32 flags) 9648 if (fd >= 0) { 9649 new_prog = bpf_prog_get_type_dev(fd, BPF_PROG_TYPE_XDP, 9639 dev_change_xdp_fd(struct net_device *dev, struct netlink_ext_ack *extack, int fd, int expected_fd, u32 flags) argument
|
/linux-master/kernel/ |
H A D | fork.c | 2417 * if the fd table isn't shared). 3252 struct files_struct *fd = current->files; local 3256 (fd && atomic_read(&fd->count) > 1)) { 3257 *new_fdp = dup_fd(fd, max_fds, &error);
|