ENUM P9_QID_T(9)
π¦ enum p9_qid_t(9) π¦
okay so real talk, bestie β this is a page straight out of the Kernel API Manual, and it's all about enum p9_qid_t. it's short, it's sweet, and it's genuinely iconic once u get the vibe. let's go π
β¨ NAME β¨
enum p9_qid_t β QID types. that's it, that's the whole name. slay.
πΈ SYNOPSIS πΈ
here's the whole enum, exactly as it lives, don't touch a single character:
enum p9_qid_t {
P9_QTDIR ,
P9_QTAPPEND ,
P9_QTEXCL ,
P9_QTMOUNT ,
P9_QTAUTH ,
P9_QTTMP ,
P9_QTSYMLINK ,
P9_QTLINK ,
P9_QTFILE
};
like, that's the entire cast of characters. no cap. π
π Constants π
okay so these are the members, one by one, with zero skips because we don't do that here:
P9_QTDIRβ directory. it's giving folder energy πP9_QTAPPENDβ append-only. u can add but u cannot rewrite the past, periodt β¨P9_QTEXCLβ excluse use (only one open handle allowed). yes it says "excluse" in the original and yes we're keeping it, character for character, iykyk π β the vibe is exclusive, single-handle-only, no sharing bestieP9_QTMOUNTβ mount points π§P9_QTAUTHβ authentication file πP9_QTTMPβ non-backed-up files. temporary baddies, they do not get saved πP9_QTSYMLINKβ symbolic links (9P2000.u) π¦P9_QTLINKβ hard-link (9P2000.u) πP9_QTFILEβ normal files. the main characters of the filesystem fr fr β
π Description π
bestie, here's the tea β β QID types are a subset of permissions. they're primarily used to differentiate semantics for a file system entity via a jump-table. like, that's their whole job. their value is also the most significant 16 bits of the permission_t. the way that's so specific and so important, honestly π
and here's the reference they give u, keeping it exactly:
See Also: http://plan9.bell-labs.com/magic/man2html/2/stat
π SEE ALSO π
more reading, all of it, no skipping bestie π«Ά
Kernel file ./include/net/9p/9p.h β plus these absolute icons:
enum p9_debug_flags(9)enum p9_msg_t(9)enum p9_open_mode_t(9)enum p9_perm_t(9)struct p9_qid(9)struct p9_wstat(9)struct p9_iattr_dotl(9)struct p9_fcall(9)
go read them, they're all gonna be obsessed with u π
okay that's the whole page, mwah π β this one came from ./include/net/9p, dated October 2026. go be a main character with ur QID types, bestie! πΈπ
π¦ 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