Home
last modified time | relevance | path

Searched refs:dev_fd (Results 1 – 7 of 7) sorted by relevance

/linux-6.3-rc2/tools/testing/selftests/nci/
A Dnci_dev.c324 int dev_fd; in virtual_dev_open() local
327 dev_fd = *(int *)data; in virtual_dev_open()
364 int dev_fd; in virtual_dev_open_v2() local
367 dev_fd = *(int *)data; in virtual_dev_open_v2()
455 int dev_fd; in virtual_deinit() local
458 dev_fd = *(int *)data; in virtual_deinit()
477 int dev_fd; in virtual_deinit_v2() local
480 dev_fd = *(int *)data; in virtual_deinit_v2()
540 int dev_fd; in virtual_poll_start() local
543 dev_fd = *(int *)data; in virtual_poll_start()
[all …]
/linux-6.3-rc2/tools/testing/selftests/kvm/include/
A Dkvm_util_base.h570 int __kvm_has_device_attr(int dev_fd, uint32_t group, uint64_t attr);
572 static inline void kvm_has_device_attr(int dev_fd, uint32_t group, uint64_t attr) in kvm_has_device_attr() argument
574 int ret = __kvm_has_device_attr(dev_fd, group, attr); in kvm_has_device_attr()
579 int __kvm_device_attr_get(int dev_fd, uint32_t group, uint64_t attr, void *val);
581 static inline void kvm_device_attr_get(int dev_fd, uint32_t group, in kvm_device_attr_get() argument
584 int ret = __kvm_device_attr_get(dev_fd, group, attr, val); in kvm_device_attr_get()
589 int __kvm_device_attr_set(int dev_fd, uint32_t group, uint64_t attr, void *val);
591 static inline void kvm_device_attr_set(int dev_fd, uint32_t group, in kvm_device_attr_set() argument
594 int ret = __kvm_device_attr_set(dev_fd, group, attr, val); in kvm_device_attr_set()
/linux-6.3-rc2/Documentation/userspace-api/
A Dvduse.rst113 static int vduse_message_handler(int dev_fd)
119 len = read(dev_fd, &req, sizeof(req));
131 len = write(dev_fd, &resp, sizeof(resp));
185 static void *iova_to_va(int dev_fd, uint64_t iova, uint64_t *len)
199 fd = ioctl(dev_fd, VDUSE_IOTLB_GET_FD, &entry);
/linux-6.3-rc2/tools/testing/selftests/kvm/lib/
A Dkvm_util.c1161 int dev_fd, ret; in vcpu_mmap_sz() local
1163 dev_fd = open_kvm_dev_path_or_exit(); in vcpu_mmap_sz()
1165 ret = ioctl(dev_fd, KVM_GET_VCPU_MMAP_SIZE, NULL); in vcpu_mmap_sz()
1169 close(dev_fd); in vcpu_mmap_sz()
1639 int __kvm_has_device_attr(int dev_fd, uint32_t group, uint64_t attr) in __kvm_has_device_attr() argument
1647 return ioctl(dev_fd, KVM_HAS_DEVICE_ATTR, &attribute); in __kvm_has_device_attr()
1674 int __kvm_device_attr_get(int dev_fd, uint32_t group, uint64_t attr, void *val) in __kvm_device_attr_get() argument
1683 return __kvm_ioctl(dev_fd, KVM_GET_DEVICE_ATTR, &kvmattr); in __kvm_device_attr_get()
1686 int __kvm_device_attr_set(int dev_fd, uint32_t group, uint64_t attr, void *val) in __kvm_device_attr_set() argument
1695 return __kvm_ioctl(dev_fd, KVM_SET_DEVICE_ATTR, &kvmattr); in __kvm_device_attr_set()
/linux-6.3-rc2/Documentation/target/
A Dtcmu-design.rst308 int fd, dev_fd;
331 dev_fd = open("/dev/uio0", O_RDWR);
332 map = mmap(NULL, map_len, PROT_READ|PROT_WRITE, MAP_SHARED, dev_fd, 0);
340 int ret = read(dev_fd, buf, 4); /* will block */
342 handle_device_events(dev_fd, map);
/linux-6.3-rc2/Documentation/x86/
A Dresctrl.rst1072 int dev_fd;
1085 dev_fd = open("/dev/pseudo_lock/newlock", O_RDWR);
1086 if (dev_fd < 0) {
1092 dev_fd, 0);
1095 close(dev_fd);
1104 close(dev_fd);
1108 close(dev_fd);
/linux-6.3-rc2/Documentation/virt/kvm/
A Dapi.rst164 vm_fd = ioctl(dev_fd, KVM_CREATE_VM, KVM_VM_TYPE_ARM_IPA_SIZE(48));

Completed in 28 milliseconds