Messages in this thread | | | Date | Thu, 1 Oct 2009 22:10:38 +0100 | From | Alan Cox <> | Subject | Re: [PATCH] jsm: fixing termios structure to be compatible with stty application |
| |
> Hence, I just assigned ospeed and ispeed with the requested speed in Bfoo > format (c_flag & CBAUD).
The kernel ospeed and ispeed are not in Bfoo format, they are actual bit rates. (I've no idea what glibc does, last time I checked it didn't even support 2007 era Linux speed setting properly so apps still have to use ioctls directly for them)
> > I also tested the tty_termios_encode_baud_rate(), and it will basically do what > I did: > > termios->c_ispeed = ibaud; > termios->c_ospeed = obaud; > > Thanks for the review, and sorry if I missed the point completely.
ibaud != Bfoo
| |