Re: 2.6.36/2.6.37: broken compatibility with userspace input-utils?

From: Gerd Hoffmann
Date: Wed Jan 26 2011 - 15:08:25 EST


It depends. We do not have a clear way to see if new ioctls are
supported (and I do not consider "try new ioctl and see if data sticks"
being a good way) so that facilitated protocol version rev-up.

Yea, EVIOCGKEYCODE_V2 on a old kernel returns EINVAL. Not good. There is another one which should have been used to signal "unknown ioctl", ENOTTY IIRC (a bit silly for historical reasons), so you can figure whenever your input data is invalid or whenever the ioctl isn't supported in the first place (in which case you could just fallback to the old version).

So keymap
manipulating tools might be forced to check protocol version.

Guess that is the best way indeed.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at