From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757082AbcI0BVD convert rfc822-to-8bit (ORCPT ); Mon, 26 Sep 2016 21:21:03 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:38636 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756216AbcI0BUx (ORCPT ); Mon, 26 Sep 2016 21:20:53 -0400 X-AuditID: cbfee61a-f79786d000004c78-40-57e9c71b3b1a From: Kiwoong Kim To: "'Shaun Tancheff'" , "'Joao Pinto'" Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: In-reply-to: Subject: RE: UFS API in the kernel Date: Tue, 27 Sep 2016 10:10:51 +0900 Message-id: <009f01d2185b$fcf71ef0$f6e55cd0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT X-Mailer: Microsoft Outlook 15.0 Thread-index: AQKh9EDihnSHXFKVUWP4NwPO+S4Z/ALdA0ZMAZ1M6ceeyPsuMA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsVy+t9jAV3p4y/DDf6/FbP48egos8XlXXPY LLqv72CzmH1vKaMDi0f74W8sHlv2f2b0+LxJLoA5ys0mIzUxJbVIITUvOT8lMy/dVik0xE3X QkkhLzE31VYpQtc3JEhJoSwxpxTIMzJAAw7OAe7BSvp2CW4ZPyatZyloF6voePGXpYHxiWAX IyeHhICJxNEVzUwQtpjEhXvr2boYuTiEBJYySnzs2scK4bxnlDgyexkbSBWbgKbE05tTwTpE BKIlvm6/xghiMwvYSFw8+IwRouEWo8TjjwvAGjgFgiVeLr7HAmILCyhJbHq2kBnEZhFQlbi5 7QOYzStgKXH0wzRWCFtQ4sdkkHoOoKHqElOm5ELM15Z48u4CK8SlChK7Px1lhbjBSWLfy38s EDUiEvtevGOcwCg0C8mkWQiTZiGZNAtJxwJGllWMEqkFyQXFSem5hnmp5XrFibnFpXnpesn5 uZsYwZH3TGoH48Fd7ocYBTgYlXh4f3S+DBdiTSwrrsw9xCjBwawkwpt0FCjEm5JYWZValB9f VJqTWnyI0RTo1YnMUqLJ+cCkkFcSb2hibmJubGBhbmlpYqQkzts4+1m4kEB6YklqdmpqQWoR TB8TB6dUA6OS9kTVeVUu5QUSkQd/fzqbWLRZ/KhET1c6r81S88in12e55PgqLeE8lS0aanmJ c5/jvgl8Ji1HJbOXT3i7MTsjriBCImv3Vj5v70nyibqmFgqvMvvzdlx/dffq4fx30YvO7AxV O+1c8plFfu/zDSH2d//a35/mfGFTb7atUODWqXLWkl83nlFiKc5INNRiLipOBAAHjFoY0gIA AA== X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi. If you want to declare some things for user interface, is it be better to put those thing include/uapi/linux/ than include/linux? Agreed with Mr. Pinto's opinion with respect to implementing additional ioctls. Regards. > -----Original Message----- > From: linux-scsi-owner@vger.kernel.org [mailto:linux-scsi- > owner@vger.kernel.org] On Behalf Of Shaun Tancheff > Sent: Tuesday, September 27, 2016 4:23 AM > To: Joao Pinto > Cc: linux-scsi@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: UFS API in the kernel > > On Thu, Sep 22, 2016 at 10:21 AM, Joao Pinto > wrote: > > Hi! > > > > I am designing an application that has the goal to be an utility for > > Unipro and UFS testing purposes. This application is going to run on > > top of a recent Linux Kernel containing the new UFS stack (including the > new DWC drivers). > > > > I am considering doing the following: > > a) Create a new config item called CONFIG_UFS_CHARDEV which is going > > to create a char device responsible to make some IOCTL available for > > user-space applications > > b) Create a linux/ufs.h header file that contains data structures > > declarations that will be needed in user-space applications > > I am not very familiar with UFS devices, that said you should have an sgX > chardev being created already so you can handle SG_IO requests. > There also appear to be some sysfs entries being created. > > So between sg and sysfs you should be able to handle any user-space out of > band requests without resorting to making a new chardev. > > Adding more sysfs entries, if you need them, should be fine. > > You may find it easier to expand on the existing interfaces than to get > consensus on a new driver and ioctls. > > Hope this helps, > Shaun > > > Could you please advise me about what the correct approach should be > > to make it as standard as possible and usable in the future? > > > > Thank you very much for your help! > > > > regards, > > Joao > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-scsi" > > in the body of a message to majordomo@vger.kernel.org More majordomo > > info at > > https://urldefense.proofpoint.com/v2/url?u=http-3A__vger.kernel.org_ma > > jordomo-2Dinfo.html&d=DQICaQ&c=IGDlg0lD0b-nebmJJ0Kp8A&r=Wg5NqlNlVTT7Ug > > l8V50qIHLe856QW0qfG3WVYGOrWzA&m=vJFB6pCywWtdvkgHz9Vc0jQz0xzeyZlr-7eCWY > > u88nM&s=yiQLPFpqmMrbqLZz1Jb3aNqOje2dRMLJHEzUDobwcXc&e= > > > > -- > Shaun Tancheff > -- > To unsubscribe from this list: send the line "unsubscribe linux-scsi" in > the body of a message to majordomo@vger.kernel.org More majordomo info at > http://vger.kernel.org/majordomo-info.html