n_hdlc_tty_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… n_hdlc_tty_write(9) β€” Kernel API Manual πŸ’…

okay bestie, welcome to the Kernel API Manual page for n_hdlc_tty_write(9) β€” the function that is literally here to write a single frame of data to device. ✨


πŸŽ€ NAME πŸŽ€

n_hdlc_tty_write β€” write a single frame of data to device. That's the whole name vibe, periodt. πŸ’–

✨ SYNOPSIS ✨

Bestie, here's the exact signature, don't let the commas scare you:

ssize_t n_hdlc_tty_write (struct tty_struct *tty , struct file *file ,
       const u8 *data , size_t count );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • tty β€” pointer to associated tty device instance data. Your tty's whole identity. πŸ’…
  • file β€” pointer to file object data. The file object in question, lowkey important. πŸŽ€
  • data β€” pointer to transmit data (one frame). Just one frame, okay? One. 🫢
  • count β€” size of transmit frame in bytes. The byte count, no cap. πŸ”₯

🌸 DESCRIPTION 🌸

Returns the number of bytes written (or error code). That's it β€” short and iconic. ✨

🌈 SEE ALSO 🌈

Go read these next, bestie β€” they're all part of the same n_hdlc friend group:


xoxo, your kernel bestie πŸ’– β€” source/version: ./drivers/tty; date: October 2026. πŸ¦‹

πŸ“¦ where this page comes from