n_hdlc_tty_poll(9)
πΈ NAME πΈ
okay so welcome to the Kernel API Manual corner, bestie β todayβs main character is n_hdlc_tty_poll, and the whole vibe is: TTY callback for the poll system call. no cap. π
β¨ SYNOPSIS β¨
__poll_t n_hdlc_tty_poll (struct tty_struct *tty , struct file *filp ,
poll_table *wait );
π ARGUMENTS π
ttyβ pointer to tty instance data. literally the ttyβs little data home. π«Άfilpβ pointer to the open file object for the device. yes bestie, that file object. πwaitβ wait queue for operations. itβs giving βplease wait hereβ energy. β³
π DESCRIPTION π
So this function determines which operations β specifically read/write β will not block, and it returns that info to the caller. β¨ What comes back is a bit mask containing info on which ops will not block. iconic, honestly. π₯
π¦ SEE ALSO π¦
- 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_write(9)n_hdlc_tty_ioctl(9)n_hdlc_alloc(9)n_hdlc_buf_return(9)n_hdlc_buf_put(9)n_hdlc_buf_get(9)
Thatβs the whole scroll, bestie β this gem came from ./drivers/tty, dated October 2026, and you just finished reading n_hdlc_tty_poll(9). slay, go touch some kernel grass. πππ¦
π¦ 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