tty_termios_copy_hw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tty_termios_copy_hw β€” like, the kernel API manual edition πŸŽ€

okay bestie so this is tty_termios_copy_hw(9) from the Kernel API Manual, and honestly? she's a tiny little function with one job and she does it immaculately. let's get into it ✨


✨ NAME ✨

tty_termios_copy_hw β€” copy hardware settings 🫢

like, literally the whole point. the name is the plot. no notes.


🌸 SYNOPSIS 🌸

void tty_termios_copy_hw (struct ktermios *new , const struct ktermios
*old );

returns void btw, so don't go looking for a return value, she gives you nothing back and that's her vibe πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • new β€” the new termios ✨ (yes that's really the parameter name, no cap)
  • old β€” the old termios πŸŽ€ (and yes, they're just called new and old, iconic minimalism)

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the tea πŸ“: this function propagates the hardware-specific terminal setting bits from the old termios structure to the new one. it's giving "pass the aux" but for settings. the way that it just moves the hardware bits over… obsessed 😭

and where do you use it? two moods, bestie:

  • when the hardware does not support reconfiguration at all (so like, don't bother asking her to change, she's set in her ways πŸ™ˆ)
  • or as a helper in some cases where only minimal reconfiguration is supported (she can flex, but only a little πŸ’…)

that's it. that's the whole function. small but mighty. main character energy in like nine lines of C πŸ”₯


🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/tty/tty_ioctl.c β€” go say hi to her πŸ‘‹

and here's the whole friend group, all cross-referenced and everything (iykyk):

all of them. every single one. go read them after this, fr fr πŸ“š


ngl there are no warnings, no exit statuses, and no environment variables on this page β€” she's a short queen and we respect that πŸ’–

🧚 sign-off 🧚

that's the whole page, bestie!! sourced from the ./drivers/tty section, dated October 2026, and yeah it's the tty_termios_copy_hw(9) page β€” mwah πŸ’‹ slay, go copy some hardware settings, and remember: the hardware bits go from old to new. periodt. πŸ’œ

πŸ“¦ where this page comes from