Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751367AbdISK0B (ORCPT ); Tue, 19 Sep 2017 06:26:01 -0400 Received: from mail-wr0-f176.google.com ([209.85.128.176]:50498 "EHLO mail-wr0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750974AbdISKZ7 (ORCPT ); Tue, 19 Sep 2017 06:25:59 -0400 X-Google-Smtp-Source: AOwi7QC1/Jhicm+rF4Wdpaq5ixv+GUhNbSSP1F2x9OvwEAqBtF9suHnv7B0TJJ2XYUAtQLIEn9aeCg== From: Benjamin Gaignard To: labbott@redhat.com, sumit.semwal@linaro.org, gregkh@linuxfoundation.org, arve@android.com, riandrews@android.com, broonie@kernel.org, dan.carpenter@oracle.com Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH v2 0/2] staging: ion: get one device per heap Date: Tue, 19 Sep 2017 12:25:36 +0200 Message-Id: <1505816738-30017-1-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 869 Lines: 25 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