RE: User Space Emulation of Devices
Phil Thompson (Phil.Thompson@pace.co.uk)
Thu, 13 Sep 2001 09:25:52 +0100
> -----Original Message-----
> From: Pavel Machek [mailto:firstname.lastname@example.org]
> Sent: 12 September 2001 11:28
> To: Phil Thompson; 'email@example.com'
> Subject: Re: User Space Emulation of Devices
> > Without going into the gory details, I have a requirement
> for a device
> > driver that does very little apart from pass on the
> > "requests" onto a user space application to implement and
> pass back to the
> > driver.
> > Does anything like this already exist?
> Something like that which would also pass ioctl()s would be *very*
The best approach I found (for my purposes anyway) was the one used by the
ALSA OSS emulator (and strace as well?) that uses weak & strong symbols in a
pre-loaded shared library to intercept system calls to the device I wanted
to handle in user space.
I'd be surprised if this technique was suitable as a generic approach.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/