On Mon, Aug 12, 2019 at 05:14:19PM -0700, Suji Velupillai wrote: > Hello, > > We have client which is running Linux and it is connected to host over > PCIe. Both shares PCIe bar space as shared memory. Currently we only > have one UART for debug, but this can't be used by the client, thus we > need a virtual serial console running on a client side, which can > read/write from PCIe mapped shared memory. The host can open the tty > port seamlessly for communication. > > I looked into the kernel tty/serial/ tree, and did not find any sample > one. Is there a sample code? Not for just this single thing, but there are a number of existing busses and implementations that communicate across PCIe shared memory between systems. I suggest looking into them. good luck! greg k-h