Add an IOCTL to check ION ABI version
Userspace needs a way to detect ION ABI version at runtime to determine heap IDs. CURRENT_ION_ABI_VERSION is set to 2 considering legacy and upstream versions as 0 and 1. Bug: 140916230 Test: make Signed-off-by: Hridya Valsaraju <hridya@google.com> Change-Id: Ie9d9e23c2d8323620832906d33745d599cbce6be
This commit is contained in:
parent
c8e152bc7d
commit
ecbdae8679
2 changed files with 13 additions and 0 deletions
|
|
@ -159,4 +159,11 @@ struct ion_heap_query {
|
|||
#define ION_IOC_HEAP_QUERY _IOWR(ION_IOC_MAGIC, 8, \
|
||||
struct ion_heap_query)
|
||||
|
||||
/**
|
||||
* DOC: ION_IOC_HEAP_ABI_VERSION - return ABI version
|
||||
*
|
||||
* Returns ABI version for this driver
|
||||
*/
|
||||
#define ION_IOC_ABI_VERSION _IOR(ION_IOC_MAGIC, 9, \
|
||||
__u32)
|
||||
#endif /* _UAPI_LINUX_ION_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue