Re: [PATCH] jsm: fixing termios structure to be compatible withstty application

From: Alan Cox
Date: Thu Oct 01 2009 - 17:09:35 EST


> 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/