p9_msg_buf_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 (see p9pdu_vwritef).
  • ap β€” variable arguments to be fed to the passed format template (see p9pdu_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