1# SPDX-License-Identifier: GPL-2.0 2menu "Android" 3 4config ANDROID_STAGING 5 bool 6 7config ASHMEM 8 bool "Enable the Anonymous Shared Memory Subsystem" 9 depends on SHMEM 10 select ANDROID_STAGING 11 help 12 The ashmem subsystem is a new shared memory allocator, similar to 13 POSIX SHM but with different behavior and sporting a simpler 14 file-based API. 15 16 It is, in theory, a good memory allocator for low-memory devices, 17 because it can discard shared memory units when under memory pressure. 18 19config ASHMEM_RUST 20 bool "Use the Rust implementation of Ashmem" 21 depends on ASHMEM && RUST 22 23config ASHMEM_C 24 def_bool ASHMEM && !ASHMEM_RUST 25 26endmenu 27