From a50fd5568ea72ea1ad662207ccea512735803174 Mon Sep 17 00:00:00 2001 From: Rebecca Schultz Zavin Date: Mon, 11 Jun 2012 15:12:37 -0700 Subject: 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 Change-Id: Ia4bae22946b0078084b62f5447fecbf261dfaa83 --- include/ion/ion.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') 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); -- cgit v1.2.3