1diff --git a/third_party/ashmem/ashmem-dev.c b/third_party/ashmem/ashmem-dev.c 2index 2303369d8167..52b3f47eeae0 100644 3--- a/third_party/ashmem/ashmem-dev.c 4+++ b/third_party/ashmem/ashmem-dev.c 5@@ -72,6 +72,11 @@ int ashmem_set_prot_region(int fd, int prot) 6 return ioctl(fd, ASHMEM_SET_PROT_MASK, prot); 7 } 8 9+int ashmem_get_prot_region(int fd) 10+{ 11+ return ioctl(fd, ASHMEM_GET_PROT_MASK); 12+} 13+ 14 int ashmem_pin_region(int fd, size_t offset, size_t len) 15 { 16 struct ashmem_pin pin = { offset, len }; 17diff --git a/third_party/ashmem/ashmem.h b/third_party/ashmem/ashmem.h 18index 7d411cc064ba..d8afccbd2a6e 100644 19--- a/third_party/ashmem/ashmem.h 20+++ b/third_party/ashmem/ashmem.h 21@@ -18,6 +18,7 @@ extern "C" { 22 23 int ashmem_create_region(const char *name, size_t size); 24 int ashmem_set_prot_region(int fd, int prot); 25+int ashmem_get_prot_region(int fd); 26 int ashmem_pin_region(int fd, size_t offset, size_t len); 27 int ashmem_unpin_region(int fd, size_t offset, size_t len); 28 int ashmem_get_size_region(int fd); 29