On Tue, Feb 13, 2007 at 10:59:29PM +0100, Vojtech Pavlik wrote:
> On Tue, Feb 13, 2007 at 11:44:35PM +0200, Ville Syrjälä wrote:
> 
> > > I poked around in what meager uinput doc I could find. It is not clear
> > > if events fed into uinput appear on their own evdev device or if they
> > > get merged into another stream.
> 
> uinput is designed to allow for creation of virtual input devices
> controlled from userspace, indistinguishable from the real thing by
> applications.
> 
> > A quick look at the code suggests that using write() + UI_DEV_CREATE 
> > ioctl you can register an input device (which should appear as 
> > /dev/input/eventX via udev). However it looks like you need a daemon 
> > process per device since there is no 'add new device' ioctl and it uses 
> > struct file to identify the device.
> 
> You need a new open() for each new device, not a separate process.

Ah right, that was my initial thought, but then I got the idea from 
somewhere that it struct file was per process not per fd. Thanks for the 
correction.

-- 
Ville Syrjälä
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to