Searched refs:mapsize (Results 1 – 1 of 1) sorted by relevance
/tools/virtio/ |
D | vringh_test.c | 142 int fd, mapsize, to_guest[2], to_host[2]; in parallel_test() local 154 mapsize = vring_size(RINGSIZE, ALIGN) in parallel_test() 157 mapsize = (mapsize + getpagesize() - 1) & ~(getpagesize() - 1); in parallel_test() 158 ftruncate(fd, mapsize); in parallel_test() 161 host_map = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in parallel_test() 162 guest_map = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in parallel_test() 178 munmap(guest_map, mapsize); in parallel_test() 181 __user_addr_max = __user_addr_min + mapsize; in parallel_test() 304 munmap(host_map, mapsize); in parallel_test()
|