diff options
author | Bjorn Bringert <bringert@android.com> | 2009-06-02 00:41:09 +0100 |
---|---|---|
committer | Bjorn Bringert <bringert@android.com> | 2009-06-02 00:55:30 +0100 |
commit | 7be52b1a0e052635b361f9d8c186adbbcc981b7e (patch) | |
tree | affb0be0b9c7f03ddd8f4536d00c451774905d96 /include | |
parent | 3c5a6f0bc8aefc4dacab8e95ba9017a7ac7d91f5 (diff) | |
download | system_core-7be52b1a0e052635b361f9d8c186adbbcc981b7e.zip system_core-7be52b1a0e052635b361f9d8c186adbbcc981b7e.tar.gz system_core-7be52b1a0e052635b361f9d8c186adbbcc981b7e.tar.bz2 |
Added ashmem_get_size_region() function.
This is needed by the MemoryFile changes in
https://android-git.corp.google.com/g/2714
where it is used to find out whether a file descriptor
refers to an ashmem region.
Diffstat (limited to 'include')
-rw-r--r-- | include/cutils/ashmem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cutils/ashmem.h b/include/cutils/ashmem.h index fd71352..0683bf2 100644 --- a/include/cutils/ashmem.h +++ b/include/cutils/ashmem.h @@ -18,6 +18,7 @@ int ashmem_create_region(const char *name, size_t size); int ashmem_set_prot_region(int fd, int prot); int ashmem_pin_region(int fd, size_t offset, size_t len); int ashmem_unpin_region(int fd, size_t offset, size_t len); +int ashmem_get_size_region(int fd); #ifdef __cplusplus } |