Home
last modified time | relevance | path

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

/frameworks/libs/binary_translation/base/
Dmemfd_backed_mmap.cc30 int CreateAndFillMemfd(const char* name, size_t memfd_file_size, uintptr_t value) { in CreateAndFillMemfd() argument
32 CHECK_EQ(memfd_file_size % sizeof(value), 0); in CreateAndFillMemfd()
33 CHECK_EQ(memfd_file_size % kPageSize, 0); in CreateAndFillMemfd()
38 uintptr_t* memfd_file_content = static_cast<uintptr_t*>(MmapOrDie(memfd_file_size)); in CreateAndFillMemfd()
40 for (size_t i = 0; i < memfd_file_size / sizeof(value); ++i) { in CreateAndFillMemfd()
46 WriteFullyOrDie(memfd, memfd_file_content, memfd_file_size); in CreateAndFillMemfd()
48 MunmapOrDie(memfd_file_content, memfd_file_size); in CreateAndFillMemfd()
55 void* CreateMemfdBackedMapOrDie(int memfd, size_t map_size, size_t memfd_file_size) { in CreateMemfdBackedMapOrDie() argument
57 CHECK_EQ(map_size % memfd_file_size, 0); in CreateMemfdBackedMapOrDie()
58 CHECK_EQ(memfd_file_size % kPageSize, 0); in CreateMemfdBackedMapOrDie()
[all …]
/frameworks/libs/binary_translation/base/include/berberis/base/
Dmemfd_backed_mmap.h25 int CreateAndFillMemfd(const char* name, size_t memfd_file_size, uintptr_t value);
27 void* CreateMemfdBackedMapOrDie(int memfd, size_t map_size, size_t memfd_file_size);