MCPcopy Create free account
hub / github.com/cinit/TMoe / has_memfd_support

Function has_memfd_support

app/src/main/cpp/utils/shared_memory.cpp:70–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70bool has_memfd_support() {
71 /*
72 * memfd is available when Build.SDK >= Q
73 * /dev/ashmem is no longer accessible when SDK >= Q
74 */
75 static bool memfd_supported = testMemfdSupport();
76 return memfd_supported;
77}
78
79
80/* logistics of getting file descriptor for ashmem */

Callers 2

ashmem_create_regionFunction · 0.85
copy_file_to_memfdFunction · 0.85

Calls 1

testMemfdSupportFunction · 0.85

Tested by

no test coverage detected