p9_conn_create(9)
π p9_conn_create(9) π
okay so bestie, welcome to the Kernel API Manual β we're doing the 9p thing today and honestly? it's giving network-mux realness. this one is p9_conn_create, and it's literally the lil' function that gets your per-session mux data all set up and pretty. π
β¨ NAME β¨
p9_conn_create β initialize the per-session mux data π¦
like, it sets up the mux data for one session. that's the whole vibe. no cap.
πΈ SYNOPSIS πΈ
void p9_conn_create (struct p9_client *client );
yep, that's it β one arg, returns nothing (void, queen of not needing to report back π
).
π ARGUMENTS π
clientβ the client instance. that's it. that's the whole argument. she takes one (1) client instance and she's happy. π«Ά
β NOTE β
not me about to drop the important bit: it creates the polling task if this is the first session. so like, first session gets the polling task spawned, subsequent ones... don't. iykyk. π₯
bestie this is a NOTE for a reason β if you're on session number two, don't go looking for a fresh polling task, because she's not making one. π
π SEE ALSO π
so here's the whole friend group, go say hi:
- Kernel file
./net/9p/trans_fd.cπ 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_pollwait(9)p9_poll_mux(9)p9_fd_request(9)p9_conn_destroy(9)p9_fd_close(9)p9_poll_workfn(9)
like, read them in order, it's a whole saga and they all ate. πβ¨
mwah π this lil' page lives in ./net/9p, stamped October 2026 β main character energy from the kernel docs division, periodt. go forth and multiplex responsibly bestie π§π
π¦ 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