[lkml]   [2001]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: User Space Emulation of Devices
Phil Thompson wrote:
> Without going into the gory details, I have a requirement for a device
> driver that does very little apart from pass on the open/close/read/write
> "requests" onto a user space application to implement and pass back to the
> driver.
> Does anything like this already exist?
> Thanks,
> Phil
> -


You may use pseudo-terminals (pty) to pass open/close/read/write/ioctl requests
to user space.

Your monitoring application opens master side of the pseudo terminal and
monitored application opens slave side.

Ptys are mainly used to redirect serial device communications (tty) to user
space but they can also be used to emulate other types of devices.
Check pty man pages for details.

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

 \ /
  Last update: 2005-03-22 13:02    [W:0.108 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site