Lines Matching full:pagesize
28 static size_t pagesize; variable
35 addr = mmap(0, pagesize, PROT_READ | PROT_WRITE, in sense_support()
40 ret = madvise(addr, pagesize, MADV_POPULATE_READ); in sense_support()
44 ret = madvise(addr, pagesize, MADV_POPULATE_WRITE); in sense_support()
48 munmap(addr, pagesize); in sense_support()
104 ret = munmap(addr + pagesize, pagesize); in test_holes()
117 ret = madvise(addr, 2 * pagesize, MADV_POPULATE_READ); in test_holes()
120 ret = madvise(addr, 2 * pagesize, MADV_POPULATE_WRITE); in test_holes()
125 ret = madvise(addr + pagesize, pagesize, MADV_POPULATE_READ); in test_holes()
128 ret = madvise(addr + pagesize, pagesize, MADV_POPULATE_WRITE); in test_holes()
142 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_populated()
156 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_not_populated()
214 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_softdirty()
228 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_not_softdirty()
289 pagesize = getpagesize(); in main()