/bionic/libc/bionic/ |
pthread_create.cpp | 139 static void* __create_thread_mapped_space(size_t mmap_size, size_t stack_guard_size) { 143 void* space = mmap(NULL, mmap_size, prot, flags, -1, 0); 148 mmap_size, strerror(errno)); 158 munmap(space, mmap_size); 167 size_t mmap_size; local 173 mmap_size = BIONIC_ALIGN(attr->stack_size + sizeof(pthread_internal_t), PAGE_SIZE); 175 attr->stack_base = __create_thread_mapped_space(mmap_size, attr->guard_size); 179 stack_top = reinterpret_cast<uint8_t*>(attr->stack_base) + mmap_size; 182 mmap_size = 0; 195 if (mmap_size == 0) [all...] |
__libc_init_main_thread.cpp | 85 main_thread.mmap_size = 0;
|
pthread_exit.cpp | 114 if (thread->mmap_size != 0) { 124 _exit_with_stack_teardown(thread->attr.stack_base, thread->mmap_size);
|
pthread_internal.cpp | 90 if (thread->mmap_size != 0) { 92 munmap(thread->attr.stack_base, thread->mmap_size);
|
pthread_internal.h | 99 size_t mmap_size; member in class:pthread_internal_t
|
/frameworks/native/libs/vr/libbroadcastring/include/libbroadcastring/ |
broadcast_ring.h | 72 // uint32_t mmap_size = (ring_size + (page_size - 1)) & ~(page_size - 1); 78 // void *mmap_base = mmap(nullptr, mmap_size, PROT_READ|PROT_WRITE, 83 // Ring ring = Ring::Create(mmap_base, mmap_size, record_count); 88 // CHECK(!munmap(mmap_base, mmap_size)); 100 // size_t mmap_size = st.st_size; 101 // void *mmap_base = mmap(nullptr, mmap_size, PROT_READ, 108 // std::tie(ring, import_ok) = Ring::Import(mmap_base, mmap_size); 136 // CHECK(!munmap(mmap_base, mmap_size)); 177 static BroadcastRing Create(void* mmap, size_t mmap_size, 180 CHECK(ring.ValidateGeometry(mmap_size, sizeof(Record), record_count)) [all...] |
/external/fio/ |
smalloc.c | 49 size_t mmap_size; member in struct:pool 175 pool->mmap_size = alloc_size; 204 munmap(pool->map, pool->mmap_size); 232 munmap(pool->map, pool->mmap_size);
|
/frameworks/native/libs/vr/libbroadcastring/ |
broadcast_ring_test.cc | 571 size_t mmap_size = (ring_size + (page_size - 1)) & ~(page_size - 1); local 572 ASSERT_GE(mmap_size, ring_size); 574 void* mmap_base = mmap(nullptr, mmap_size, PROT_READ | PROT_WRITE, 578 Ring ring = Ring::Create(mmap_base, mmap_size, record_count); 581 ASSERT_EQ(0, mprotect(mmap_base, mmap_size, PROT_READ)); 586 std::tie(imported_ring, import_ok) = Ring::Import(mmap_base, mmap_size); 600 ASSERT_EQ(0, munmap(mmap_base, mmap_size)); 611 size_t mmap_size = (ring_size + (page_size - 1)) & ~(page_size - 1); local 612 ASSERT_GE(mmap_size, ring_size); 614 void* mmap_base = mmap(nullptr, mmap_size, PROT_READ | PROT_WRITE [all...] |
/external/e2fsprogs/intl/ |
gettextP.h | 88 size_t mmap_size; member in struct:loaded_domain
|
loadmsgcat.c | 1028 domain->mmap_size = size; [all...] |
/toolchain/binutils/binutils-2.25/intl/ |
gettextP.h | 96 size_t mmap_size; member in struct:loaded_domain
|
loadmsgcat.c | 1025 domain->mmap_size = size; [all...] |
/system/extras/ioshark/ |
ioshark_bench_subr.c | 611 size_t mmap_size; local 613 mmap_size = filename_cache_num_entries * 615 munmap(filename_cache, mmap_size);
|
/bionic/linker/ |
linker_phdr.cpp | 533 size_t mmap_size = align_up(size, align) + align - PAGE_SIZE; 535 reinterpret_cast<uint8_t*>(mmap(nullptr, mmap_size, PROT_NONE, mmap_flags, -1, 0)); 541 uint8_t* last = align_down(mmap_ptr + mmap_size, align) - size; 545 munmap(start + size, mmap_ptr + mmap_size - (start + size)); [all...] |
/hardware/intel/common/libva/test/encode/ |
h264encode.c | 1698 int frame_size, mmap_size; local [all...] |
/external/netperf/src/ |
netlib.c | 1706 int mmap_size; local [all...] |
/hardware/qcom/audio/hal/ |
audio_hw.c | 2971 uint32_t mmap_size; local 3559 uint32_t mmap_size; local [all...] |