Quote:
Originally Posted by d2e2004
I have one doubt in linux kernel. I.e. Why the 'N_TTY_BUF_SIZE' is defined as 4096 in 'tty.h' file.
|
Why not? It’s a nice big, round number (4K). There’s nothing inherently “special” about it.
Quote:
Originally Posted by d2e2004
I have checked linux kernels from 2.6.10 to 2.6.23 in all these sources the tty buffer size value is defined as 4096.
|
It is in fact this way all the way back until kernel 1.1.13 (when the tty line discipline was introduced). Prior to 1.1.13, the equivalent macro was 1024.
Quote:
Originally Posted by d2e2004
Due to this i couldnt able to read more than 4096 bytes from a serial device which is connected in 'ttyUSB0' using a single read operation.
|
Then use two read operations…