Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5688477ybl; Tue, 10 Dec 2019 09:53:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwF9Dj/1YtQhGETvWbpdQ8zkxokuMhYzaJLyXkgpQis4F6MQyxuMkoB2Af0okIo7WFH+2bZ X-Received: by 2002:a9d:6181:: with SMTP id g1mr22244791otk.104.1576000390920; Tue, 10 Dec 2019 09:53:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576000390; cv=none; d=google.com; s=arc-20160816; b=Lgm4DWw4fvreOuPJClB+SdnbJroMwAyE2URxmX7luStfcmWTlHbBisEkgoPUa6Qnfh c6NZLF9ST6vc114fMIyDm+N5XWDdLpMmCqvSKPquAi9fob/5vklshihbSFMfb6Au/1uB 0hFk6UGz3d91NAzl7gd3hkC75hevipLg68sfUdCYRQTMjobtDqijUtrwcDKM486mjrbU YfaS4rWhPRVQlqwce0YR8pRU5wUTrsgftya1fxljyxtaiK2JR+l8XHM9+dl9iei+cc18 G6aWkgZqFEvW/F4AnZoveMBLw4YpYmkwtbzj4SZnwGwUfDrygqv5xU8Xoe8CMVVf3YZS y4KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=Qr38IUBI36xY5kxZFExRO04vkAP6n7XqAnjKKUw6xpg=; b=FOiNJToK6Lc2LWlrO0hz819PD8upbNrmr1hPhTTNcANos7bo2oRKsWAaeOFlN6ARbr ZJSKmP1Ymnv+50kVLtB4UhnG8VK7ddCTgTWeeBgyipPMDSFOuTiP/XZ2cn3aNxOF9//l uTuV7fbDEM6/wZl7gZzRQwO7q1NeVhajNWOWz1iGhIuT+EwePQAv3LHjznMhoBp/xXBQ TYBnFdE9CJuF8/R2hbdzM/sVOyzHYRKEPLbpa+KmKYPsB3z+DveGt0P3iEUhu+ZGJfUM YDqFQXUCp9g6Il1ct2iykVar4gqJZYHhpWdJJybpkWvmtvN2jYCePEShGs+O/jtzcYUr CY1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m85si2279370oig.158.2019.12.10.09.52.58; Tue, 10 Dec 2019 09:53:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727698AbfLJRvd (ORCPT + 99 others); Tue, 10 Dec 2019 12:51:33 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:57219 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727520AbfLJRvd (ORCPT ); Tue, 10 Dec 2019 12:51:33 -0500 Received: from mail-qk1-f172.google.com ([209.85.222.172]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.129]) with ESMTPSA (Nemesis) id 1Mr9OA-1hzN2L2hCo-00oGcT for ; Tue, 10 Dec 2019 18:51:31 +0100 Received: by mail-qk1-f172.google.com with SMTP id z14so6835430qkg.9 for ; Tue, 10 Dec 2019 09:51:31 -0800 (PST) X-Gm-Message-State: APjAAAVLh7K0yoiAPQVyGgf6m6FppAqz4namXhHleENIoWXagEvEOBLU QhJ7QDardumFaIiC7KfhtS3CE5DTSx0jDgu7vgY= X-Received: by 2002:a37:b283:: with SMTP id b125mr27668682qkf.352.1576000290527; Tue, 10 Dec 2019 09:51:30 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Tue, 10 Dec 2019 18:51:14 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC 5/5] i3c: add i3cdev module to expose i3c dev in /dev To: Vitor Soares Cc: "linux-kernel@vger.kernel.org" , linux-i3c@lists.infradead.org, Joao Pinto , Boris Brezillon , gregkh , Wolfram Sang , Mark Brown Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:itayKSU1OR2FDC8JQ5IYL5ANIZSz6coceAnGeYRSXoEgxjJupnz 1ADsw1AvYUgPvkRJwt4NwL0imXkpP7YUOy8gg/h85KKe/Lly4OJ1clzftm01Ucrv2YEEHQ3 DjwK+0qW+RQ5RlnxJA5eEUkFiZnOYDJxccIGdcrGWzq0U3ZKT+fXBApR6dLh6Ky4gdnbb3z yFUXQkyoLtnRCGaf7CfIA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:gJWvan+hM+g=:dElaufqJbaVrH7lL+OT1Yr 2LQQvp7KS9SWvlLYfWGkHaUMRGYJHT/NMs1YyRojl6UMFTlu73aTtoVErjWmFTfC9gS+sH/Uj TNTxIUZPrYulNdmS/6i+7rgSu6gc3AKF4ukEsoYh1yrn73fV+644SFibcovxRqxJfaJ5ANnWy i+KdL11/837jIGloKQcpsDBNa7NC70M6mixyNmlyidaMaTlV+uu298IthyWLCJK0kRazvpCyA 3PBpGgh226C1aGnJtE/A4/OrdagBSsYffWaKg4BeurJ2TfMvIQJjzR+lixUmyNBzN+0a37S8J 8vQZA0bYIcYXNNK4YkbYDxNts2J6+GsAceKQ574GObAqzhclhtNWeO5NB4RNSrnMrJFtD3tYj pFTxszdZLeFSZ5n95x5sQXdKd4azZUX5zmCp43GCNrSU5sQQOeWVkFknDqDo7VbhzWI4hsiEx kfq/msADCxPI46Xy79P7+Ae63ULKPo7BFyItWnoe7qQJsAu04EaI+TwcBlIdp60Y9lc2hpIZQ tgASJdGveocpttbLs7J/R2D0eCzNDNiM4WOOAPFSz3qsZth2K+FbxYa5fytJU23bZUOoUQFbk p4ngZVxTtmMrWAGfFLBxOxCOUZ5+VFmTKLcfsXg7/xNJk1q6hzlw5rupUvhfeGzyYs0B6B76N UcR8pRiGrPpoKrDKm2akCwaZwRRwxZukZxY22abzm1v29raq5ORMW6mYU/kgpQzYhHre4mbcT avKQFkc+Is1beFyNN8OtGg/+sqCwJKqTmxk5t2t/oJR45ja6OgBEbAKa+G72DeKz3V7Mst/K4 H30xsvGJ9XuEdrGON15AH5KSzir/UO7zPFb5gOqiTTv2qysV9ECXhCMNcEko1dIQvWXGw9jnR +emwQeHIVN0l1BlG5BZQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 10, 2019 at 4:37 PM Vitor Soares wrote: > > +/* IOCTL commands */ > +#define I3C_DEV_IOC_MAGIC 0x07 > + > +struct i3c_ioc_priv_xfer { > + struct i3c_priv_xfer __user *xfers; /* pointers to i3c_priv_xfer */ > + __u32 nxfers; /* number of i3c_priv_xfer */ > +}; > + > +#define I3C_IOC_PRIV_XFER \ > + _IOW(I3C_DEV_IOC_MAGIC, 30, struct i3c_ioc_priv_xfer) > + > +#define I3C_IOC_PRIV_XFER_MAX_MSGS 42 This is not a great data structure for UAPI, please see https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/tree/Documentation/core-api/ioctl.rst?h=compat-ioctl-endgame&id=927324b7900ee9b877691a8b237e272fabb21bf5 for some background. I'm planning to submit that documentation for mainline integration soon. Arnd