tty_termios_hw_change(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ”₯

  • true if change is needed πŸ’€ (yes, that's the only thing it returns β€” it's bool, 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 🌈


ngl there's no BUGS section on this one, no ENVIRONMENT, no EXIT STATUS β€” it's a bool-returning kernel helper, bestie, it just tells you true or 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