2003-03-12 13:17:41

by Rogier Wolff

[permalink] [raw]
Subject: [PATCH] [RFC] Userspace serial drivers: PTY changes.


Hi,

Last time I implemented a complex network-using serial driver,
I chose to implement the driver in userspace, communicating wiht
the kernel through a special driver I called USSP: User-Space Serial
Ports. The general consensus then was that I should've used ptys.
I agree.

So this time, I've done things using ptys. There were however, some
features that physical serial ports could do which ptys could not.

For example Baud rates. You could set the baud rate on the slave
side, which was impossible to get at from the master side. Also
modem control signals were not implemented.

Also we don't want the program on the master side to have to poll
say every second to see if the other side changed the baud rate
or did something else special. So when these are changed, the other
side is signalled that a change has happened and notified....


So we implemented all this. Patch attached. What do you think?

(We can dial out or dial in on the remote modem using our
userspace driver, without any significant differences from a
normal local port!)

(This is not the time to bitch about that I generated the patch
against the wrong kernel. I'll generate them against recent
kernels when we agree that the followed path is OK. )

Roger.

--
** [email protected] ** http://www.BitWizard.nl/ ** +31-15-2600998 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* The Worlds Ecosystem is a stable system. Stable systems may experience *
* excursions from the stable situation. We are currently in such an *
* excursion: The stable situation does not include humans. ***************


2003-03-12 16:12:29

by H. Peter Anvin

[permalink] [raw]
Subject: Re: [PATCH] [RFC] Userspace serial drivers: PTY changes.

Followup to: <[email protected]>
By author: Rogier Wolff <[email protected]>
In newsgroup: linux.dev.kernel
>
> So we implemented all this. Patch attached. What do you think?
>

-ENOPATCH?

-hpa
--
<[email protected]> at work, <[email protected]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
Architectures needed: ia64 m68k mips64 ppc ppc64 s390 s390x sh v850 x86-64

2003-03-12 17:09:25

by Rogier Wolff

[permalink] [raw]
Subject: Re: [PATCH] [RFC] Userspace serial drivers: PTY changes.

On Wed, Mar 12, 2003 at 08:22:50AM -0800, H. Peter Anvin wrote:
> Followup to: <[email protected]>
> By author: Rogier Wolff <[email protected]>
> In newsgroup: linux.dev.kernel
> >
> > So we implemented all this. Patch attached. What do you think?
> >
>
> -ENOPATCH?

--EAGREE


--
** [email protected] ** http://www.BitWizard.nl/ ** +31-15-2600998 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
* The Worlds Ecosystem is a stable system. Stable systems may experience *
* excursions from the stable situation. We are currently in such an *
* excursion: The stable situation does not include humans. ***************


Attachments:
(No filename) (689.00 B)
patch-2.4.20.trueport-12-mrt (6.18 kB)
Download all attachments