Searched refs:dev_fd (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 759 int dev_fd, ret; in vcpu_mmap_sz() local 761 dev_fd = open(KVM_DEV_PATH, O_RDONLY); in vcpu_mmap_sz() 762 if (dev_fd < 0) in vcpu_mmap_sz() 765 ret = ioctl(dev_fd, KVM_GET_VCPU_MMAP_SIZE, NULL); in vcpu_mmap_sz() 770 close(dev_fd); in vcpu_mmap_sz()
|
/Linux-v4.19/Documentation/target/ |
D | tcmu-design.txt | 284 int fd, dev_fd; 307 dev_fd = open("/dev/uio0", O_RDWR); 308 map = mmap(NULL, map_len, PROT_READ|PROT_WRITE, MAP_SHARED, dev_fd, 0); 316 int ret = read(dev_fd, buf, 4); /* will block */ 318 handle_device_events(dev_fd, map);
|
/Linux-v4.19/Documentation/x86/ |
D | intel_rdt_ui.txt | 838 int dev_fd; 851 dev_fd = open("/dev/pseudo_lock/newlock", O_RDWR); 852 if (dev_fd < 0) { 858 dev_fd, 0); 861 close(dev_fd); 870 close(dev_fd); 874 close(dev_fd);
|