Searched refs:dev_fd (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.4/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 774 int dev_fd, ret; in vcpu_mmap_sz() local 776 dev_fd = open(KVM_DEV_PATH, O_RDONLY); in vcpu_mmap_sz() 777 if (dev_fd < 0) in vcpu_mmap_sz() 780 ret = ioctl(dev_fd, KVM_GET_VCPU_MMAP_SIZE, NULL); in vcpu_mmap_sz() 785 close(dev_fd); in vcpu_mmap_sz()
|
/Linux-v5.4/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-v5.4/Documentation/x86/ |
D | resctrl_ui.rst | 915 int dev_fd; 928 dev_fd = open("/dev/pseudo_lock/newlock", O_RDWR); 929 if (dev_fd < 0) { 935 dev_fd, 0); 938 close(dev_fd); 947 close(dev_fd); 951 close(dev_fd);
|
/Linux-v5.4/Documentation/virt/kvm/ |
D | api.txt | 160 vm_fd = ioctl(dev_fd, KVM_CREATE_VM, KVM_VM_TYPE_ARM_IPA_SIZE(48));
|