tty_put_char(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, this is tty_put_char(9) from the Kernel API Manual, and it does exactly what it says on the label: write one character to a tty. iconic behavior, honestly πŸ’…


🌸 SYNOPSIS 🌸

int tty_put_char (struct tty_struct *tty , u8 ch );

πŸŽ€ ARGUMENTS πŸŽ€

  • tty β€” tty (yes, the original literally just says tty, and I respect the minimalism 😭)
  • ch β€” character to write

πŸ’– DESCRIPTION πŸ’–

Write one byte to the tty using the provided tty->ops->put_char method if present. that's the whole assignment, and it ate ✨


⚠️ NOTE ⚠️

the specific put_char operation in the driver layer may go away soon. Don't call it directly, use this method.

like bestie, please do not go around the method. use this one. no cap 🫢


🌈 RETURN 🌈

It returns the number of characters successfully output. slay πŸ’«


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/tty/tty_io.c is the home base, and the whole squad is:


okay that's the page! source/version footer vibes: ./drivers/tty Β· October 2026. byeee πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from