tty_termios_input_baud_rate(9)
π tty_termios_input_baud_rate π
okay so bestie, welcome to the Kernel API Manual entry for tty_termios_input_baud_rate(9) β yes that's the whole title, it's giving mysterious main character energy because the NAME section is literally just vibes and nothing else π«Ά
β¨ NAME β¨
tty_termios_input_baud_rate β and that's it. that's the whole name section. no description. a total enigma. the manpage said "figure it out" and honestly? iconic π
πΈ SYNOPSIS πΈ
speed_t tty_termios_input_baud_rate (const struct ktermios *termios );
so it hands you back a speed_t and it takes one thing. slay, short and sweet π
π¦ ARGUMENTS π¦
termiosβ the termios structure, bestie. that's the input. it's aconst struct ktermios *and it is literally the thing you're pulling a baud rate out of β¨
π₯ DESCRIPTION π₯
okay so the whole point of this function: it converts termios baud rate data into a speed. that's the job. that's the assignment. it reads the baud rate data sitting in the termios and gives you back an actual speed value π
β οΈ important caveat time, no cap: you should call this with the termios lock held if this termios is a terminal termios structure. like, don't just rawdog it, hold the lock π
and here's the tea for the driver girlies π: device drivers can call this function, but they should use ->c_[io]speed directly as they are updated. so yeah, you can, but the preferred path is right there in ->c_[io]speed. iykyk β¨
Locking: none β the function itself does no locking, which is exactly why you gotta bring your own lock to the party π
π SEE ALSO π
- Kernel file
./drivers/tty/tty_baudrate.cβ that's where the magic lives, go read it bestie π tty_termios_baud_rate(9)tty_termios_encode_baud_rate(9)tty_encode_baud_rate(9)
the whole baud rate friendship group fr fr β they all hang out together π
πΈ cute little sign-off πΈ
this queen lives under ./drivers/tty, the source of all this wisdom is the Kernel API Manual, and the date on the vibes is October 2026 β go forth and convert those baud rates, bestie, you're gonna ate ππ§ββοΈ
π¦ 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