Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1740719 > unrolled thread

[PATCH v5 0/2] staging: ion: get one device per heap

Started byBenjamin Gaignard <benjamin.gaignard@linaro.org>
First post2017-09-27 15:30 +0200
Last post2017-09-27 15:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH v5 0/2]  staging: ion: get one device per heap Benjamin Gaignard <benjamin.gaignard@linaro.org> - 2017-09-27 15:30 +0200

#1740719 — [PATCH v5 0/2] staging: ion: get one device per heap

FromBenjamin Gaignard <benjamin.gaignard@linaro.org>
Date2017-09-27 15:30 +0200
Subject[PATCH v5 0/2] staging: ion: get one device per heap
Message-ID<uukzv-3iO-9@gated-at.bofh.it>
version 5:
- create a configuration flag to keep legacy Ion misc device

version 4:
- add a configuration flag to switch between legacy Ion misc device
  and one device per heap version.
  This change has been suggested after Laura talks at XDC 2017.

version 3:
- change ion_device_add_heap prototype to return a possible error.

version 2:
- simplify ioctl check like propose by Dan
- make sure that we don't register more than ION_DEV_MAX heaps.

Until now all ion heaps are addressing using the same device "/dev/ion".
This way of working doesn't allow to give access rights (for example with
SElinux rules) per heap.
This series propose to have one device "/dev/ionX" per heap.
Query heaps informations will be possible on each device node but
allocation request will only be possible if heap_mask_id match with device minor number.

Using legacy Ion misc device is still by setting ION_LEGACY_DEVICE_API
configuration flag.

Benjamin Gaignard (2):
  staging: ion: simplify ioctl args checking function
  staging: ion: create one device entry per heap

 drivers/staging/android/TODO            |  1 -
 drivers/staging/android/ion/Kconfig     |  7 +++++++
 drivers/staging/android/ion/ion-ioctl.c | 29 +++++++++++++++++++++--------
 drivers/staging/android/ion/ion.c       | 31 ++++++++++++++++++++++++++++++-
 drivers/staging/android/ion/ion.h       | 15 +++++++++++++--
 5 files changed, 71 insertions(+), 12 deletions(-)

-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web