Re: [PATCH v2 2/2] Input: uinput - add new UINPUT_DEV_SETUP ioctl

2014-06-23 Thread David Herrmann
Hi On Mon, Jun 23, 2014 at 4:53 AM, Peter Hutterer peter.hutte...@who-t.net wrote: On Fri, Jun 20, 2014 at 01:26:40PM +0200, David Herrmann wrote: This adds a new ioctl UINPUT_DEV_SETUP that replaces the old device setup method (by write()'ing struct uinput_user_dev to the node). The old

Re: [PATCH v2 2/2] Input: uinput - add new UINPUT_DEV_SETUP ioctl

2014-06-22 Thread Peter Hutterer
On Fri, Jun 20, 2014 at 01:26:40PM +0200, David Herrmann wrote: This adds a new ioctl UINPUT_DEV_SETUP that replaces the old device setup method (by write()'ing struct uinput_user_dev to the node). The old method is not easily extendable and requires huge payloads. Furthermore, overloading

[PATCH v2 2/2] Input: uinput - add new UINPUT_DEV_SETUP ioctl

2014-06-20 Thread David Herrmann
This adds a new ioctl UINPUT_DEV_SETUP that replaces the old device setup method (by write()'ing struct uinput_user_dev to the node). The old method is not easily extendable and requires huge payloads. Furthermore, overloading write() without properly versioned objects is error-prone. Therefore,