STRUCT P9_FD_OPTS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Ok so bestie, we’re in the Kernel API Manual and today’s main character is struct p9_fd_opts β€” literally the per-transport options for fd transport. ✨


🌸 SYNOPSIS 🌸

Here’s the whole struct, no cap:

struct p9_fd_opts {
    int rfd;
    int wfd;
    u16 port;
    bool privport;
 };

πŸŽ€ Members πŸŽ€

These are the members, and yes, every single one matters πŸ’…

  • rfd β€” the file descriptor for reading, only for trans=fd πŸ”₯
  • wfd β€” the file descriptor for writing, also for trans=fd 🫢
  • port β€” the port to connect to, for trans=tcp 🌈
  • privport β€” says the port is privileged πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/net/9p/client.h and all these iconic little references:

  • enum p9_trans_status(9)
  • enum p9_req_status_t(9)
  • struct p9_req_t(9)
  • struct p9_client(9)
  • struct p9_rdma_opts(9)
  • struct p9_session_opts(9)
  • struct p9_dirent(9)

Mwah πŸ’‹ that’s the whole page, bestie. Source/version vibes: ./include/net/9p, dated October 2026, from the Kernel API Manual. πŸ§šπŸ’œ

πŸ“¦ where this page comes from