n_hdlc_tty_write(9)
π
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:
Kernel file ./drivers/tty/n_hdlc.c struct n_hdlc(9)n_hdlc_tty_close(9)n_hdlc_tty_open(9)n_hdlc_send_frames(9)n_hdlc_tty_write_work(9)n_hdlc_tty_wakeup(9)n_hdlc_tty_receive(9)n_hdlc_tty_read(9)n_hdlc_tty_ioctl(9)n_hdlc_tty_poll(9)n_hdlc_alloc(9)n_hdlc_buf_return(9)n_hdlc_buf_put(9)n_hdlc_buf_get(9)
xoxo, your kernel bestie π β source/version: ./drivers/tty; date: October 2026. π¦
π¦ 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