From: Vojtech Pavlik <vojtech@suse.cz>
To: Brad Hards <bhards@bigpond.net.au>
Cc: Vojtech Pavlik <vojtech@suse.cz>,
linuxconsole-dev@lists.sourceforge.net,
linux-kernel@vger.kernel.org
Subject: Re: Event API changes - EVIOCGID
Date: Sun, 28 Jul 2002 10:22:56 +0200 [thread overview]
Message-ID: <20020728102256.B12268@ucw.cz> (raw)
In-Reply-To: <200207281745.37751.bhards@bigpond.net.au>; from bhards@bigpond.net.au on Sun, Jul 28, 2002 at 05:45:37PM +1000
On Sun, Jul 28, 2002 at 05:45:37PM +1000, Brad Hards wrote:
> On Tue, 23 Jul 2002 02:04, Vojtech Pavlik wrote:
> > On Sun, Jul 21, 2002 at 08:50:56PM +1000, Brad Hards wrote:
> > > G'day,
> > >
> > > The attached patch basically implements:
> > > +struct input_devinfo {
> > > + uint16_t bustype;
> > > + uint16_t vendor;
> > > + uint16_t product;
> > > + uint16_t version;
> > > +};
> > > +
> > >
> > > -#define EVIOCGID _IOR('E', 0x02, short[4])
> > > /* get device ID */ +#define EVIOCGID _IOR('E', 0x02,
> > > struct input_devinfo) /* get device ID */
> > >
> > > It affects just about every input driver, as a result of some associated
> > > cleanups that I applied, and its about 40K uncompressed - hence the gzip.
> > >
> > > Is there anything that would stop this being applied?
> >
> > No, the patch is OK.
> I am not happy about the change from uint16_t to __u16, which you appear
> to have made before sending this to Linus.
>
> That is a broken change - there is a standard type, and you've changed
> it to a non-standard type. This is confusing to userspace programmers, and
> I cannot provide a satisfactory explaination for this in documentation.
>
> Please change it back.
Well, I know this has been discussed back and forth.
__u16 is a kernel type and is defined if you #include <linux/input.h>.
uint16_t isn't.
__u* is used extensively in the input API anyway, so you'd have to
explain it to userspace programmers nevertheless. So I prefer keeping
the input.h include use just one type of explicit sized types.
Sure, we can change them all to uint*_t, but then do it all at once and
provide a satisfactory explanation for it. ;)
--
Vojtech Pavlik
SuSE Labs
next parent reply other threads:[~2002-07-28 8:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200207212050.56616.bhards@bigpond.net.au>
[not found] ` <20020722180431.A18282@ucw.cz>
[not found] ` <200207281745.37751.bhards@bigpond.net.au>
2002-07-28 8:22 ` Vojtech Pavlik [this message]
2002-07-28 8:42 ` Event API changes - EVIOCGID Brad Hards
2002-07-28 8:50 ` Vojtech Pavlik
2002-07-28 10:38 ` Johann Deneux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020728102256.B12268@ucw.cz \
--to=vojtech@suse.cz \
--cc=bhards@bigpond.net.au \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxconsole-dev@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox