mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ion: Add ion_user_handle_t to make userspace happy
Change-Id: If291c13d02274eb8200090254dac1a6a969a32e1
This commit is contained in:
parent
7789393109
commit
3b478b9d3f
1 changed files with 4 additions and 3 deletions
|
@ -22,6 +22,7 @@
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
struct ion_handle;
|
struct ion_handle;
|
||||||
|
typedef struct ion_handle *ion_user_handle_t;
|
||||||
/**
|
/**
|
||||||
* enum ion_heap_types - list of all possible types of heaps
|
* enum ion_heap_types - list of all possible types of heaps
|
||||||
* @ION_HEAP_TYPE_SYSTEM: memory allocated via vmalloc
|
* @ION_HEAP_TYPE_SYSTEM: memory allocated via vmalloc
|
||||||
|
@ -537,7 +538,7 @@ struct ion_allocation_data {
|
||||||
unsigned int heap_id_mask;
|
unsigned int heap_id_mask;
|
||||||
#endif
|
#endif
|
||||||
unsigned int flags;
|
unsigned int flags;
|
||||||
struct ion_handle *handle;
|
ion_user_handle_t handle;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -551,7 +552,7 @@ struct ion_allocation_data {
|
||||||
* provides the file descriptor and the kernel returns the handle.
|
* provides the file descriptor and the kernel returns the handle.
|
||||||
*/
|
*/
|
||||||
struct ion_fd_data {
|
struct ion_fd_data {
|
||||||
struct ion_handle *handle;
|
ion_user_handle_t handle;
|
||||||
int fd;
|
int fd;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -560,7 +561,7 @@ struct ion_fd_data {
|
||||||
* @handle: a handle
|
* @handle: a handle
|
||||||
*/
|
*/
|
||||||
struct ion_handle_data {
|
struct ion_handle_data {
|
||||||
struct ion_handle *handle;
|
ion_user_handle_t handle;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue