[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200205211812.GD1399643@kroah.com>
Date: Wed, 5 Feb 2020 21:18:12 +0000
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Felipe Balbi <balbi@...nel.org>
Cc: Andrey Konovalov <andreyknvl@...gle.com>,
USB list <linux-usb@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
Jonathan Corbet <corbet@....net>,
Alan Stern <stern@...land.harvard.edu>,
Dmitry Vyukov <dvyukov@...gle.com>,
Alexander Potapenko <glider@...gle.com>,
Marco Elver <elver@...gle.com>
Subject: Re: [PATCH v5 1/1] usb: gadget: add raw-gadget interface
On Wed, Feb 05, 2020 at 06:42:41PM +0200, Felipe Balbi wrote:
> > Overall, supporting O_NONBLOCK might be a useful feature for people
> > who are doing something else other than fuzzing, We can account for
> > potential future extensions that'll support it, so detecting
> > O_NONBLOCK and returning an error for now makes sense.
> >
> > WDYT?
>
> If that's the way you want to go, that's okay. But let's, then, prepare
> the code for extension later on. For example, let's add an IOCTL which
> returns the "version" of the ABI. Based on that, userspace can detect
> features and so on.
Ick, no, no version mess. If you have a new api, just add a new ioctl
and away you go, userspace can easily test for that. Don't go down the
path of trying to version your api, that way never works.
Trust me, been there, got the t-shirt, lived to regret it.
greg k-h
Powered by blists - more mailing lists