On Thu, Mar 28, 2019 at 12:39:12PM -0700, H. Peter Anvin wrote: > Dumb question: this is basically a pty on steroids. Wouldn't this be > better done by enhancing the pty devices? I did look at that, but it would be pretty invasive to pty. There's no modem control stuff, none of the other special serial ioctls. And the locking in this driver is fairly strange because you have two serial ports looking at each other's data for modem control. But that might not be a big deal. Adding the speed simulation to ptys would also be really strange. That's not a deal-breaker, I suppose, but it's not much of a serial port simulation without it. -corey