Home
last modified time | relevance | path

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

/third_party/ltp/lib/
Dtst_memutils.c24 void **map_blocks; in tst_pollute_memory() local
61 map_blocks = SAFE_MALLOC(map_count * sizeof(void *)); in tst_pollute_memory()
68 map_blocks[i] = mmap(NULL, blocksize, PROT_READ | PROT_WRITE, in tst_pollute_memory()
71 if (map_blocks[i] == MAP_FAILED) { in tst_pollute_memory()
76 memset(map_blocks[i], fillchar, blocksize); in tst_pollute_memory()
80 SAFE_MUNMAP(map_blocks[i], blocksize); in tst_pollute_memory()
82 free(map_blocks); in tst_pollute_memory()