>> You could write a device driver implementing virtual serial ports. Then you >> just add an ioctl that connects/disconnects virtual ports to real ports if >> desired. >> I do not quite see what this would be good for, but I am sure it's >> good for learning or for fun. :) > >My purpose is to provide serial interfaces for debugging. My real box >acts as remote host connecting to VMWare box by a *virtual* serial cable >so that I can set up a debugging environment. > Ah! You don't want to have the X11 overhead of VMware. Quite an idea. If I get it right, your setup looks like: guest writes to /dev/ttyS0 vmware connects its virtual S0 to the host's ttyFakeS0 minicom on the host to ttyFakeS0 or even vmware S0 to host's ttyS0 other remote machine do minicom to ttyS0 The reason for FakeS0 is that vmware does not know about ptys, unfortunately. Jan Engelhardt -- - : send the line "unsubscribe linux-c-programming" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html