Re: What's the rationale behind sending a Xoff character when the port is stopped ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 7 May 2012 15:00:50 -0500
Karthik Manamcheri <karthik.manamcheri@xxxxxxxxx> wrote:

> Hi,
> 
> I noticed in drivers/tty/serial/8250.c that when we transmit
> characters (by calling transmit_chars), we check for uart_tx_stopped
> only after sending the x_char (if any). What's the rationale behind
> this ? I would expect the uart not to send ANY characters (including a
> Xoff character) if its throttled (or stopped).

We implement xon/xoff flow control. Therefore we need to send characters
when throttled.

Think about the case where you are flow controlled for transmit and your
receive buffer fills up...

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


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux