p9_msg_buf_size(9)
πΈ NAME πΈ
p9_msg_buf_size β from the Kernel API Manual, bestie β returns a buffer size that is sufficiently large to hold the intended 9p message. That's the whole serve. β¨
β¨ SYNOPSIS β¨
size_t p9_msg_buf_size (struct p9_client *c , enum p9_msg_t type , const
char *fmt , va_list ap );
π ARGUMENTS π
cβ the client. iconic.typeβ the message type.fmtβ format template for assembling the request message (seep9pdu_vwritef).apβ variable arguments to be fed to the passed format template (seep9pdu_vwritef).
β οΈ NOTE β οΈ
Even for response types (P9_R*), the format template and variable arguments must always be for the originating request type (P9_T*). No cap, that's the rule. π
π¦ SEE ALSO π¦
- Kernel file
./net/9p/protocol.cβ go read it, iykyk.
xoxo, source/version ./net/9p, dated October 2026 ππ
π¦ 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