Home
last modified time | relevance | path

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

/mOS-networking-stack/core/src/
H A Dmemory_mgt.c40 MPCreate(int chunk_size, size_t total_size, int is_hugepage) in MPCreate() argument
62 mp->mp_free_chunks = ((total_size + (chunk_size -1))/chunk_size); in MPCreate()
64 total_size = chunk_size * ((size_t)mp->mp_free_chunks); in MPCreate()
71 mp->mp_startptr = get_huge_pages(total_size, NULL); in MPCreate()
73 TRACE_ERROR("posix_memalign failed, size=%ld\n", total_size); in MPCreate()
80 int res = posix_memalign((void **)&mp->mp_startptr, getpagesize(), total_size); in MPCreate()
82 TRACE_ERROR("posix_memalign failed, size=%ld\n", total_size); in MPCreate()
93 if (mlock(mp->mp_startptr, total_size) < 0) in MPCreate()
94 TRACE_ERROR("m_lock failed, size=%ld\n", total_size); in MPCreate()
/mOS-networking-stack/core/src/include/
H A Dmemory_mgt.h9 mem_pool_t MPCreate(int chunk_size, size_t total_size, int is_hugepage);