/linux-6.6.21/tools/testing/selftests/nci/ |
D | nci_dev.c | 324 int dev_fd; in virtual_dev_open() local 327 dev_fd = *(int *)data; in virtual_dev_open() 329 len = read(dev_fd, buf, 258); in virtual_dev_open() 336 write(dev_fd, nci_reset_rsp, sizeof(nci_reset_rsp)); in virtual_dev_open() 338 len = read(dev_fd, buf, 258); in virtual_dev_open() 345 write(dev_fd, nci_init_rsp, sizeof(nci_init_rsp)); in virtual_dev_open() 347 len = read(dev_fd, buf, 258); in virtual_dev_open() 354 write(dev_fd, nci_rf_disc_map_rsp, sizeof(nci_rf_disc_map_rsp)); in virtual_dev_open() 364 int dev_fd; in virtual_dev_open_v2() local 367 dev_fd = *(int *)data; in virtual_dev_open_v2() [all …]
|
/linux-6.6.21/tools/testing/selftests/kvm/include/ |
D | kvm_util_base.h | 594 int __kvm_has_device_attr(int dev_fd, uint32_t group, uint64_t attr); 596 static inline void kvm_has_device_attr(int dev_fd, uint32_t group, uint64_t attr) in kvm_has_device_attr() argument 598 int ret = __kvm_has_device_attr(dev_fd, group, attr); in kvm_has_device_attr() 603 int __kvm_device_attr_get(int dev_fd, uint32_t group, uint64_t attr, void *val); 605 static inline void kvm_device_attr_get(int dev_fd, uint32_t group, in kvm_device_attr_get() argument 608 int ret = __kvm_device_attr_get(dev_fd, group, attr, val); in kvm_device_attr_get() 613 int __kvm_device_attr_set(int dev_fd, uint32_t group, uint64_t attr, void *val); 615 static inline void kvm_device_attr_set(int dev_fd, uint32_t group, in kvm_device_attr_set() argument 618 int ret = __kvm_device_attr_set(dev_fd, group, attr, val); in kvm_device_attr_set()
|
/linux-6.6.21/Documentation/userspace-api/ |
D | vduse.rst | 113 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.6.21/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 1187 int dev_fd, ret; in vcpu_mmap_sz() local 1189 dev_fd = open_kvm_dev_path_or_exit(); in vcpu_mmap_sz() 1191 ret = ioctl(dev_fd, KVM_GET_VCPU_MMAP_SIZE, NULL); in vcpu_mmap_sz() 1195 close(dev_fd); in vcpu_mmap_sz() 1665 int __kvm_has_device_attr(int dev_fd, uint32_t group, uint64_t attr) in __kvm_has_device_attr() argument 1673 return ioctl(dev_fd, KVM_HAS_DEVICE_ATTR, &attribute); in __kvm_has_device_attr() 1700 int __kvm_device_attr_get(int dev_fd, uint32_t group, uint64_t attr, void *val) in __kvm_device_attr_get() argument 1709 return __kvm_ioctl(dev_fd, KVM_GET_DEVICE_ATTR, &kvmattr); in __kvm_device_attr_get() 1712 int __kvm_device_attr_set(int dev_fd, uint32_t group, uint64_t attr, void *val) in __kvm_device_attr_set() argument 1721 return __kvm_ioctl(dev_fd, KVM_SET_DEVICE_ATTR, &kvmattr); in __kvm_device_attr_set()
|
/linux-6.6.21/Documentation/target/ |
D | tcmu-design.rst | 308 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.6.21/Documentation/arch/x86/ |
D | resctrl.rst | 1079 int dev_fd; 1092 dev_fd = open("/dev/pseudo_lock/newlock", O_RDWR); 1093 if (dev_fd < 0) { 1099 dev_fd, 0); 1102 close(dev_fd); 1111 close(dev_fd); 1115 close(dev_fd);
|
/linux-6.6.21/Documentation/virt/kvm/ |
D | api.rst | 164 vm_fd = ioctl(dev_fd, KVM_CREATE_VM, KVM_VM_TYPE_ARM_IPA_SIZE(48));
|