STRUCT P9_WSTAT(9)
π¦ struct p9_wstat(9) β like, the whole kernel API manual vibe π¦
okay bestie, buckle up β this is a page straight out of the Kernel API Manual, and it's all about struct p9_wstat, aka file system metadata information. yes. the ~vibes~ of a file, but make it 9p. π
β¨ SYNOPSIS β¨
struct p9_wstat {
u16 size;
u16 type;
u32 dev;
struct p9_qid qid;
u32 mode;
u32 atime;
u32 mtime;
u64 length;
const char *name;
const char *uid;
const char *gid;
const char *muid;
char *extension;
kuid_t n_uid;
kgid_t n_gid;
kuid_t n_muid;
};
likeβ¦ look at her. iconic struct. no notes. π«Ά
π Members π
time to meet the cast, one field at a time. every single one of them matters, so no skipping, bestie:
sizeβ the length prefix for this stat structure instance. she's the little header that says how long the rest is. πtypeβ the type of the server (equivalent to a major number). lowkey the server's whole genre.devβ the sub-type of the server (equivalent to a minor number). the genre's subgenre, iykyk.qidβ a unique id from the server, of typep9_qid. her little fingerprint. βmodeβ Plan 9 format permissions, of typep9_perm_t. who's allowed to do what, Plan 9 style.atimeβ Last access/read time. when somebody last looked at it. πmtimeβ Last modify/write time. when somebody last touched it. βοΈlengthβ file length. how much file is in the file.nameβ last element of path (aka filename). the main character part of the path. πuidβ owner name. the name of the one who owns it.gidβ group owner. the group that owns it.muidβ last modifier. the one who touched it most recently.extensionβ area used to encode extended UNIX support. the little pocket for extra UNIX-ness. π§n_uidβ numeric user id of owner (part of the 9p2000.u extension). note the.uβ that's the extension era, bestie. β¨n_gidβ numeric group id (part of the 9p2000.u extension). same deal.n_muidβ numeric user id of laster modifier (part of the 9p2000.u extension). yes, "laster" β that's literally what the page says, I'm not fixing it, I don't make the rules. π
πΈ Description πΈ
ngl this one is short and sweet β the whole description is basically a link drop:
See Also: http://plan9.bell-labs.com/magic/man2html/2/stat
go read it, bestie. that's the lore. π¦
π₯ SEE ALSO π₯
the whole friend group, in order, exactly as listed:
- Kernel file
./include/net/9p/9p.henum p9_debug_flags(9),enum p9_msg_t(9),enum p9_open_mode_t(9),enum p9_perm_t(9),enum p9_qid_t(9),struct p9_qid(9),struct p9_iattr_dotl(9),struct p9_fcall(9)
and that's the page, periodt. π this gem lives in ./include/net/9p, and the version stamp says October 2026 β so like, future me is reading this too. slay. πβ¨π
π¦ 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