Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753353AbcJLDbI (ORCPT ); Tue, 11 Oct 2016 23:31:08 -0400 Received: from out0-138.mail.aliyun.com ([140.205.0.138]:39577 "EHLO out0-138.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752089AbcJLDbA (ORCPT ); Tue, 11 Oct 2016 23:31:00 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R771e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e02c03298;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=38;SR=0;TI=SMTPD_---.72VKkhb_1476242964; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "'Ruchi Kandoi'" , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <1476229810-26570-1-git-send-email-kandoiruchi@google.com> <1476229810-26570-7-git-send-email-kandoiruchi@google.com> In-Reply-To: <1476229810-26570-7-git-send-email-kandoiruchi@google.com> Subject: Re: [RFC 6/6] drivers: staging: ion: add ION_IOC_TAG ioctl Date: Wed, 12 Oct 2016 11:29:23 +0800 Message-ID: <00b201d22438$d51aaf30$7f500d90$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQGHpla9XZQfxBdaghqObWqVEbKNEgHA31a8oSsdFUA= Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 527 Lines: 18 On Wednesday, October 12, 2016 7:50 AM Ruchi Kandoi wrote: > +/** > + * struct ion_fd_data - metadata passed from userspace for a handle s/fd/tag/ ? > + * @handle: a handle > + * @tag: a string describing the buffer > + * > + * For ION_IOC_TAG userspace populates the handle field with > + * the handle returned from ion alloc and type contains the memtrack_type which > + * accurately describes the usage for the memory. > + */ > +struct ion_tag_data { > + ion_user_handle_t handle; > + char tag[ION_MAX_TAG_LEN]; > +}; > +