ashmem
ashmem
Posted Dec 21, 2011 9:51 UTC (Wed) by josh (subscriber, #17465)In reply to: ashmem by neilbrown
Parent article: Bringing Android closer to the mainline
In theory, a trusted process could serve the same function in userspace, by using the new cross-memory attach (CMA) mechanism. Processes could ask the trusted process to create a new piece of anonymous memory for them to use, and multiple processes could attach to that memory. (The permission issues would prove difficult to deal with, but not impossible; the trusted process would need to manage a set of cooperating processes with various credentials.) However, I think it makes sense to handle this in a much more natural way through the kernel, by associating a file descriptor with anonymous shared memory.
