> We are wondering if it is possible to give the TTY device in more > deterministic behavior (as in "less locks & no sleeping") > So in case of non blocking read/write behavior: > - We want directly write data to the serial_core transmit buffer and > return immediately. If you have the tty in raw mode then that is basically what the ldisc code does (plus any flow control you may have selected). > - Incoming data should be buffered, on a read data is read directly > from that buffer and when no data available return immediately Ditto in raw mode, and you can use O_NDELAY or the VMIN/VTIME fields to optimise block transfer behaviour. We do actually do an additional memcpy but memory copies of cached memory are so cheap it should be irrelevant unless trying to do megabit speeds on low end embedded processors. > We have the idea that the default N_TTY line discipline introduces too Based upon what analysis ? > much overhead & locking behavior what makes it less suitable for > deterministic serial communication on a PREEMT_RT platform. Are you using USB ports ? Alan -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html