Searched refs:pagesz (Results 1 – 5 of 5) sorted by relevance
/external/valgrind/tests/ |
D | sys_mman.h | 23 long pagesz = sysconf(_SC_PAGE_SIZE); in get_unmapped_page() local 24 assert(pagesz == 4096 || pagesz == 8192 || pagesz == 16384 || pagesz == 32768 in get_unmapped_page() 25 || pagesz == 65536); in get_unmapped_page() 26 ptr = mmap(0, pagesz, PROT_READ, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in get_unmapped_page() 28 r = munmap(ptr, pagesz); in get_unmapped_page()
|
/external/ltp/testcases/kernel/syscalls/mremap/ |
D | mremap01.c | 157 int pagesz; /* system's page size */ in setup() local 164 if ((pagesz = getpagesize()) < 0) { in setup() 170 memsize = (1000 * pagesz); in setup()
|
/external/python/cpython2/Modules/_ctypes/libffi/src/ |
D | dlmalloc.c | 4414 size_t pagesz; in dlvalloc() local 4416 pagesz = mparams.page_size; in dlvalloc() 4417 return dlmemalign(pagesz, bytes); in dlvalloc() 4421 size_t pagesz; in dlpvalloc() local 4423 pagesz = mparams.page_size; in dlpvalloc() 4424 return dlmemalign(pagesz, (bytes + pagesz - SIZE_T_ONE) & ~(pagesz - SIZE_T_ONE)); in dlpvalloc()
|
/external/ltp/testcases/kernel/mem/lib/ |
D | mem.c | 31 long i, pagesz = getpagesize(); in alloc_mem() local 55 for (i = 0; i < length; i += pagesz) in alloc_mem()
|
/external/dlmalloc/ |
D | malloc.c | 5321 size_t pagesz; in dlvalloc() local 5323 pagesz = mparams.page_size; in dlvalloc() 5324 return dlmemalign(pagesz, bytes); in dlvalloc() 5329 size_t pagesz; in dlpvalloc() local 5332 pagesz = mparams.page_size; in dlpvalloc() 5333 size = (bytes + pagesz - SIZE_T_ONE) & ~(pagesz - SIZE_T_ONE); in dlpvalloc() 5337 return dlmemalign(pagesz, size); in dlpvalloc()
|