tty_encode_baud_rate(9)
tty_encode_baud_rate(9) π
okay bestie, welcome to the Kernel API Manual page for tty_encode_baud_rate(9) β yes, we're doing kernel tty baud-rate realness today, and it's giving very specific, very iconic π
β¨ NAME β¨
tty_encode_baud_rate β set baud rate of the tty π
πΈ SYNOPSIS πΈ
void tty_encode_baud_rate (struct tty_struct *tty , speed_t ibaud ,
speed_t obaud );
π¦ ARGUMENTS π¦
ttyβ terminal device, the main character of this little operation πibaudβ input baud rate, aka the incoming speed vibe π¨obaudβ output baud rate, aka the outgoing speed vibe β¨
π DESCRIPTION π
So what this does is update the current termios data for the tty with the new speed settings. That's the whole assignment, and it ate, no cap π«Ά
But listen: the caller must hold the termios_rwsem for the tty in question. Not optional, not a suggestion, not a "maybe later" β the caller must hold it. Periodt π
π₯ SEE ALSO π₯
- Kernel file
./drivers/tty/tty_baudrate.c tty_termios_baud_rate(9)tty_termios_input_baud_rate(9)tty_termios_encode_baud_rate(9)
signed off from ./drivers/tty with source/version sparkle, dated October 2026, still absolutely serving tty_encode_baud_rate(9) energy ππβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms