Searched refs:pagemap_fd (Results 1 – 2 of 2) sorted by relevance
/external/ltp/testcases/kernel/syscalls/msync/ |
D | msync04.c | 25 int pagemap_fd, pageflags_fd; in get_dirty_bit() local 31 pagemap_fd = SAFE_OPEN("/proc/self/pagemap", O_RDONLY); in get_dirty_bit() 32 SAFE_LSEEK(pagemap_fd, index, SEEK_SET); in get_dirty_bit() 33 SAFE_READ(1, pagemap_fd, &pagemap_entry, sizeof(pagemap_entry)); in get_dirty_bit() 34 SAFE_CLOSE(pagemap_fd); in get_dirty_bit()
|
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | transhuge-stress.c | 28 int pagemap_fd; variable 46 if (pread(pagemap_fd, ent, sizeof(ent), in allocate_transhuge() 84 pagemap_fd = open("/proc/self/pagemap", O_RDONLY); in main() 85 if (pagemap_fd < 0) in main()
|