staging: android: ion: Add ioctl to query available heaps
authorLaura Abbott <labbott@redhat.com>
Wed, 7 Sep 2016 18:49:59 +0000 (11:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 09:46:44 +0000 (11:46 +0200)
commit02b23803c6af399473703e26703f74cfff3f22f8
tree7c3f80f8f3b3b3a9ebf7319645505f5ba49dcacd
parentbef611a92ee2d107365cf77e3665ce91d4f08da2
staging: android: ion: Add ioctl to query available heaps

Ion clients currently lack a good method to determine what
heaps are available and what ids they map to. This leads
to tight coupling between user and kernel space and headaches.
Add a query ioctl to let userspace know the availability of
heaps.

Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion-ioctl.c
drivers/staging/android/ion/ion.c
drivers/staging/android/ion/ion_priv.h
drivers/staging/android/uapi/ion.h