1 #ifndef ASHMEM_H_ 2 #define ASHMEM_H_ 3 4 #include <fcntl.h> 5 6 #define ASHMEM_NAME_LEN 128 7 8 inline int ashmem_create_region(const char * name,size_t len)9 ashmem_create_region(const char *name, size_t len) 10 { 11 return open("/dev/zero", O_RDWR); 12 } 13 14 #endif 15