p9_pollwait(9)
β¨ 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 onwait_addressβ thewait_qto block on π΄ the place where the waiting actually happenspβ 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 π―ββοΈ:
struct p9_conn(9)struct p9_trans_fd(9)p9_conn_cancel(9)p9_fd_read(9)p9_read_work(9)p9_fd_write(9)p9_write_work(9)p9_conn_create(9)p9_poll_mux(9)p9_fd_request(9)p9_conn_destroy(9)p9_fd_close(9)p9_poll_workfn(9)
π quick reminder bestie: keep the args exactly as written,wait_queue_head_t *andpoll_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
- 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