ENUM P9_PERM_T(9)
β¨ enum p9_perm_t β¨
okay bestie, so this one is enum p9_perm_t β it's literally the 9P permissions enum, straight out of the Kernel API Manual. yes, that manual. come on, let's go π
π NAME π
enum p9_perm_t β the 9P permissions, fr fr
π SYNOPSIS π
enum p9_perm_t {
P9_DMDIR ,
P9_DMAPPEND ,
P9_DMEXCL ,
P9_DMMOUNT ,
P9_DMAUTH ,
P9_DMTMP ,
P9_DMSYMLINK ,
P9_DMLINK ,
P9_DMDEVICE ,
P9_DMNAMEDPIPE ,
P9_DMSOCKET ,
P9_DMSETUID ,
P9_DMSETGID ,
P9_DMSETVTX
};
πΈ Constants πΈ
ok so here's the whole cast, main character by main character π
P9_DMDIRβ the mode bit for directories. the og folder energy πP9_DMAPPENDβ the mode bit for is append-only. yes, append only, no takebacks πP9_DMEXCLβ the mode bit for exclusive use (only one open handle allowed). one handle. that's it. that's the rule πP9_DMMOUNTβ the mode bit for mount pointsP9_DMAUTHβ the mode bit for the authentication fileP9_DMTMPβ the mode bit for non-backed-up filesP9_DMSYMLINKβ the mode bit for symbolic links (9P2000.u)P9_DMLINKβ the mode bit for hard-link (9P2000.u)P9_DMDEVICEβ the mode bit for device files (9P2000.u)P9_DMNAMEDPIPEβ the mode bit for named pipe (9P2000.u)P9_DMSOCKETβ the mode bit for socket (9P2000.u)P9_DMSETUIDβ the mode bit for setuid (9P2000.u)P9_DMSETGIDβ the mode bit for setgid (9P2000.u)P9_DMSETVTXβ the mode bit for sticky bit (9P2000.u)
π¦ Description π¦
so the vibe check here: 9P permissions differ slightly from Posix standard modes. that's the whole note. not a huge drama, just a lil difference bestie π«Ά
See Also: http://plan9.bell-labs.com/magic/man2html/2/stat
π SEE ALSO π
Kernel file ./include/net/9p/9p.h β and the whole squad lives there too: enum p9_debug_flags(9), enum p9_msg_t(9), enum p9_open_mode_t(9), enum p9_qid_t(9), struct p9_qid(9), struct p9_wstat(9), struct p9_iattr_dotl(9), struct p9_fcall(9) π
and that's the page!! π from ./include/net/9p, dated October 2026 β mwah, slay, go read the source, ily bye ππβ¨
π¦ 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