linux/ion.h missing after NDK 17

639 views
Skip to first unread message

Bin Li

unread,
Feb 18, 2020, 10:18:56 AM2/18/20
to android-ndk
I can find linux/ion.h in NDK 15 and NDK 16, but not after NDK 17. So how to use ION memory with NDK 17 or later?

rpri...@google.com

unread,
Feb 18, 2020, 5:18:10 PM2/18/20
to android-ndk
It looks like ion.h was removed in:

I think the concern is that ion is still in the upstream Linux kernel's staging directory (drivers/staging/android), so the API might change.

Ryan Prichard

unread,
Feb 18, 2020, 7:33:18 PM2/18/20
to android-ndk
There's some more information about the unstable ion ABI on this page:

Alias R. Cummins

unread,
Feb 19, 2020, 12:59:11 PM2/19/20
to andro...@googlegroups.com
Don't use it. Just compile with clang against NDK 21.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CALgsJz%3DcW69-SnJ2dLO4spAUrrgf1ZQL8b2H4Sua4eH8%2BdCePg%40mail.gmail.com.

cfe...@google.com

unread,
Feb 21, 2020, 7:43:30 PM2/21/20
to android-ndk
To be explicit, ion.h was removed because of the abi breakage in kernel 4.14. There is no longer a single ion.h that can be used on kernels before this and kernels after it, so it's better to remove it completely from the exported headers.

Bin Li

unread,
Feb 21, 2020, 10:49:23 PM2/21/20
to android-ndk
Thanks.

在 2020年2月22日星期六 UTC+8上午8:43:30,Christopher Ferris写道:

cfe...@google.com

unread,
Feb 26, 2020, 7:17:48 PM2/26/20
to android-ndk
By the way, what are you planning to use ion for? At some time in the future, when the ion situation has been fixed, we might want to expose some kind of public API. It will be important that we understand what users want to do with ion, so the public api will be useful.
Reply all
Reply to author
Forward
0 new messages