n_hdlc_tty_poll(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 πŸ¦‹


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