Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/msync/
Dmsync04.c30 static char *mmaped_area; variable
64 mmaped_area = SAFE_MMAP(NULL, pagesize, PROT_READ | PROT_WRITE, in test_msync()
67 mmaped_area[8] = 'B'; in test_msync()
68 dirty = get_dirty_bit(mmaped_area); in test_msync()
74 if (msync(mmaped_area, pagesize, MS_SYNC) < 0) { in test_msync()
78 dirty = get_dirty_bit(mmaped_area); in test_msync()
86 SAFE_MUNMAP(mmaped_area, pagesize); in test_msync()
87 mmaped_area = NULL; in test_msync()
97 if (mmaped_area) in cleanup()
98 SAFE_MUNMAP(mmaped_area, pagesize); in cleanup()