Re: ttyACM: disabled by hub (EMI?), re-enabling... Causes garbage chars & disconnect

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

 



Am Montag, den 08.06.2020, 11:39 +0000 schrieb Joakim Tjernlund:

> Most terminal programs I use tries to empty the read queue after open, just to avoid
> old garbage så I don't see a problem here. It it up to the terminal app.
> Maybe one could use O_DIRECT for this purpose ?

Well, we can throw away stuff received until some time in open(2).
But you can always have stuff in the buffer when open(2) returns.
User space needs to be ready to deal with stuff in the buffer.

	Regards
		Oliver




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux