p9_tag_alloc(9)
β¨ p9_tag_alloc β bestie edition β¨
okay so this is a page from the Kernel API Manual (the 9 section, kernel internals vibes) and we're talking about p9_tag_alloc π
she's a function, she allocates a new request, and honestly? she eats. let's get into it π«Ά
π NAME π
p9_tag_alloc β Allocate a new request. that's it, that's the whole gig β¨
πΈ SYNOPSIS πΈ
struct p9_req_t * p9_tag_alloc (struct p9_client *c , int8_t type , uint
t_size , uint r_size , const char *fmt , va_list ap );
no cap, that's the exact signature, don't come for me π
π¦ ARGUMENTS π¦
cβ Client session. your whole 9p connection situation π«typeβ Transaction type. what kind of message we're doing here πt_sizeβ Buffer size for holding this request. and listen β if it's0, it gets automatic calculation by format template, so the template figures it out for you π§r_sizeβ Buffer size for holding server's reply on this request. same deal bestie: if it's0, it's automatic calculation by format template β¨fmtβ Format template for assembling 9p request message (seep9pdu_vwritef). the lil recipe for your message πapβ Variable arguments to be fed to passed format template (seep9pdu_vwritef). the actual ingredients going into that recipe π
π CONTEXT π
Process context. that's the vibe check, we're in process context, periodt β¨
π RETURN π
Pointer to new request. slay, you get a shiny pointer back π
β SEE ALSO β
Kernel file ./net/9p/client.c β go read the source, iykyk π
p9_tag_lookup(9)p9_tag_remove(9)p9_tag_cleanup(9)p9_client_cb(9)p9_parse_header(9)p9_check_errors(9)p9_client_flush(9)p9_client_rpc(9)p9_client_zc_rpc(9)
all the siblings, the whole friend group fr fr π«Ά
ngl this is kernel-level stuff, so be careful out there β it's literally the9pclient code in./net/9pππ
and that's the page!! this one lives under ./net/9p in the Kernel API Manual, dated October 2026 β mwah, iconic, no notes πππ
π¦ 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