mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] staging: ion: get one device per heap
@ 2017-09-19 10:25 Benjamin Gaignard
  2017-09-19 10:25 ` [PATCH v2 1/2] staging: ion: simplify ioctl args checking function Benjamin Gaignard
  2017-09-19 10:25 ` [PATCH v2 2/2] staging: ion: create one device entry per heap Benjamin Gaignard
  0 siblings, 2 replies; 9+ messages in thread
From: Benjamin Gaignard @ 2017-09-19 10:25 UTC (permalink / raw)
  To: labbott, sumit.semwal, gregkh, arve, riandrews, broonie, dan.carpenter
  Cc: devel, linux-kernel, Benjamin Gaignard

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

Instead a getting one common device "/dev/ion" for
all the heaps this patch allow to create one device
entry ("/dev/ionX") per heap.
Getting an entry per heap could allow to set security rules
per heap and global ones for all heaps.

Allocation requests will be only allowed if the mask_id
match with device minor.
Query request could be done on any of the devices.

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

 drivers/staging/android/ion/ion-ioctl.c | 20 +++++++++++++-------
 drivers/staging/android/ion/ion.c       | 23 +++++++++++++++++------
 drivers/staging/android/ion/ion.h       | 10 +++++++---
 3 files changed, 37 insertions(+), 16 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-09-20  7:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-19 10:25 [PATCH v2 0/2] staging: ion: get one device per heap Benjamin Gaignard
2017-09-19 10:25 ` [PATCH v2 1/2] staging: ion: simplify ioctl args checking function Benjamin Gaignard
2017-09-19 10:25 ` [PATCH v2 2/2] staging: ion: create one device entry per heap Benjamin Gaignard
2017-09-19 11:02   ` Greg KH
2017-09-19 11:55     ` Benjamin Gaignard
2017-09-19 12:08       ` Dan Carpenter
2017-09-19 12:39       ` Greg KH
2017-09-20  1:01       ` Laura Abbott
2017-09-20  7:47         ` Benjamin Gaignard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®