Home
last modified time | relevance | path

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

/Linux-v5.10/Documentation/target/
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-v5.10/tools/testing/selftests/kvm/lib/
Dkvm_util.c854 int dev_fd, ret; in vcpu_mmap_sz() local
856 dev_fd = open(KVM_DEV_PATH, O_RDONLY); in vcpu_mmap_sz()
857 if (dev_fd < 0) in vcpu_mmap_sz()
860 ret = ioctl(dev_fd, KVM_GET_VCPU_MMAP_SIZE, NULL); in vcpu_mmap_sz()
865 close(dev_fd); in vcpu_mmap_sz()
/Linux-v5.10/Documentation/x86/
Dresctrl_ui.rst929 int dev_fd;
942 dev_fd = open("/dev/pseudo_lock/newlock", O_RDWR);
943 if (dev_fd < 0) {
949 dev_fd, 0);
952 close(dev_fd);
961 close(dev_fd);
965 close(dev_fd);
/Linux-v5.10/Documentation/virt/kvm/
Dapi.rst170 vm_fd = ioctl(dev_fd, KVM_CREATE_VM, KVM_VM_TYPE_ARM_IPA_SIZE(48));