p9_pollwait(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ p9_pollwait(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸŽ€ this one's a lil function called p9_pollwait and honestly? she's a tiny little matchmaker πŸ’…


πŸ’– NAME πŸ’–

p9_pollwait β€” add poll task to the wait queue 🫢

like, literally she takes a poll task and gets it onto the wait queue. matchmaker energy fr fr.


🌸 SYNOPSIS 🌸

void p9_pollwait (struct file *filp , wait_queue_head_t *wait_address ,
poll_table *p );

that's the whole signature, no cap β€” void return, three args, go off πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • filp β€” the file pointer being polled, iykyk πŸ—‚οΈ this is the file she's checking on
  • wait_address β€” the wait_q to block on 😴 the place where the waiting actually happens
  • p β€” poll state, that's it, that's the vibe check result πŸ”₯

⭐ DESCRIPTION ⭐

so what does she actually do? she's called by files poll operation and her whole job is to add the v9fs-poll task to the file's wait queue πŸ’« that's it. that's the whole gig. iconic, lowkey, main character energy in the most understated way possible 🧚

not me being obsessed with how a single function can be this specific 😭


🌈 SEE ALSO 🌈

the kernel file ./net/9p/trans_fd.c is where it all lives, and here's the whole friend group πŸ‘―β€β™€οΈ:


πŸ’€ quick reminder bestie: keep the args exactly as written, wait_queue_head_t * and poll_table * are not interchangeable and the compiler will absolutely clock you πŸ™ˆ

and that's the page!! πŸ“ sign-off time: this one lives under ./net/9p and the docs are dated October 2026 β€” periodt, go read the kernel source, mwah πŸ’œπŸ¦‹

πŸ“¦ where this page comes from