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.c18 static char *mmaped_area; variable
52 mmaped_area = SAFE_MMAP(NULL, pagesize, PROT_READ | PROT_WRITE, in test_msync()
55 mmaped_area[8] = 'B'; in test_msync()
56 dirty = get_dirty_bit(mmaped_area); in test_msync()
62 if (msync(mmaped_area, pagesize, MS_SYNC) < 0) { in test_msync()
66 dirty = get_dirty_bit(mmaped_area); in test_msync()
74 SAFE_MUNMAP(mmaped_area, pagesize); in test_msync()
75 mmaped_area = NULL; in test_msync()
85 if (mmaped_area) in cleanup()
86 SAFE_MUNMAP(mmaped_area, pagesize); in cleanup()