tty_termios_hw_change(9)
β¨ tty_termios_hw_change β check for setting change β¨
okay so bestie, this is a page from the Kernel API Manual (that's the 9 section, for the uninitiated π
), and it's literally just one tiny little function that does a vibe check on two termios structs. short page, but we're gonna give it the attention it deserves π«Ά
πΈ SYNOPSIS πΈ
bool tty_termios_hw_change (const struct ktermios *a , const struct ktermios *b );
π ARGUMENTS π
aβ a termios, the first one, our main character β¨bβ the termios to compare it against, the one getting the vibe check π
π DESCRIPTION π
So what this does is: it checks if any of the bits that affect a dumb device have changed between the two termios structures, or if a speed change is needed. that's it. that's the whole job. no cap π
like, you hand it a and b, it looks at the dumb-device bits and the speed, and it tells you whether anything moved. lowkey iconic for how small it is π
π₯ RETURN π₯
trueif change is needed π (yes, that's the only thing it returns β it'sbool, it's not out here being complicated)
π¦ SEE ALSO π¦
the kernel file ./drivers/tty/tty_ioctl.c is where the magic lives, and here's the whole friend group of related pages, no gatekeeping π
tty_chars_in_buffer(9)tty_write_room(9)tty_driver_flush_buffer(9)tty_unthrottle(9)tty_throttle_safe(9)tty_unthrottle_safe(9)tty_wait_until_sent(9)tty_termios_copy_hw(9)tty_get_char_size(9)tty_get_frame_size(9)tty_set_termios(9)set_termios(9)set_sgttyb(9)tty_change_softcar(9)tty_mode_ioctl(9)
ngl there's no BUGS section on this one, no ENVIRONMENT, no EXIT STATUS β it's abool-returning kernel helper, bestie, it just tells youtrueor it doesn't. go read the SEE ALSO list if you want more lore π
and that's the whole page π it lives under ./drivers/tty, dated October 2026, courtesy of the Kernel API Manual β go off, kernel devs, slay π§ββοΈβ
π¦ 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