Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/syscalls/msync/
H A Dmsync04.c18 static char *mmaped_area; variable
53 mmaped_area = SAFE_MMAP(NULL, pagesize, PROT_READ | PROT_WRITE, in test_msync()
56 mmaped_area[8] = 'B'; in test_msync()
57 dirty = get_dirty_bit(mmaped_area); in test_msync()
63 if (msync(mmaped_area, pagesize, MS_SYNC) < 0) { in test_msync()
67 dirty = get_dirty_bit(mmaped_area); in test_msync()
75 SAFE_MUNMAP(mmaped_area, pagesize); in test_msync()
76 mmaped_area = NULL; in test_msync()
86 if (mmaped_area) in cleanup()
87 SAFE_MUNMAP(mmaped_area, pagesiz in cleanup()
[all...]

Completed in 1 milliseconds