diff options
| author | Rebecca Schultz Zavin <rebecca@android.com> | 2012-06-11 15:12:37 -0700 |
|---|---|---|
| committer | Rebecca Schultz Zavin <rebecca@android.com> | 2012-06-28 13:43:53 -0700 |
| commit | a50fd5568ea72ea1ad662207ccea512735803174 (patch) | |
| tree | fe07f7d3376c3eea390ea69cb5823f5163b25896 /include | |
| parent | 22aec573b718c57aea2b9bd91607631a6d521911 (diff) | |
| download | system_core-a50fd5568ea72ea1ad662207ccea512735803174.tar.gz system_core-a50fd5568ea72ea1ad662207ccea512735803174.tar.bz2 system_core-a50fd5568ea72ea1ad662207ccea512735803174.zip | |
Modify ion to use new definition of ALLOC ioctl argument
Also add ion_alloc_fd helper for when you only want a filedescriptor
and know you won't need to access this handle again by its ion_handle
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Change-Id: Ia4bae22946b0078084b62f5447fecbf261dfaa83
Diffstat (limited to 'include')
| -rw-r--r-- | include/ion/ion.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/ion/ion.h b/include/ion/ion.h index cafead59..78a6e2e1 100644 --- a/include/ion/ion.h +++ b/include/ion/ion.h @@ -27,8 +27,10 @@ __BEGIN_DECLS int ion_open(); int ion_close(int fd); -int ion_alloc(int fd, size_t len, size_t align, unsigned int flags, - struct ion_handle **handle); +int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask, + unsigned int flags, struct ion_handle **handle); +int ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask, + unsigned int flags, int *handle_fd); int ion_free(int fd, struct ion_handle *handle); int ion_map(int fd, struct ion_handle *handle, size_t length, int prot, int flags, off_t offset, unsigned char **ptr, int *map_fd); |
