STRUCT P9_DIRENT(9)
π struct p9_dirent(9) π
okay bestie, welcome to the struct p9_dirent page β this is from the Kernel API Manual and honestly it's giving "tiny struct, big responsibility" energy. Let's get into it π
β¨ NAME β¨
struct p9_dirent β the directory entry structure. yep, that's the whole vibe. it's literally the thing that holds one dir entry. slay π
πΈ SYNOPSIS πΈ
here's the whole struct, character for character, don't touch it, it's perfect:
struct p9_dirent {
struct p9_qid qid;
u64 d_off;
unsigned char d_type;
char d_name[256];
};
π¦ Members π¦
qidβ the p9 server qid for this dirent. so like, the server's whole identity tag for it πd_offβ offset to the next dirent. this is how you keep the scroll going, fr frd_typeβ type of file. is it a file? a dir? the struct knows πd_nameβ file name. yes bestie, the name, in achararray, iconic
π₯ SEE ALSO π₯
Kernel file ./include/net/9p/client.h β and here's the whole squad, no gatekeeping:
enum p9_trans_status(9)enum p9_req_status_t(9)struct p9_req_t(9)struct p9_client(9)struct p9_fd_opts(9)struct p9_rdma_opts(9)struct p9_session_opts(9)
okay that's the page!! π«Ά this lil beauty lives in ./include/net/9p, the version is October 2026, and it's filed under struct p9_dirent(9). mwah, go read the qid struct next, iykyk πβ¨
π¦ 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