dir_e_read(9)
β¨ dir_e_read(9) β¨
okay so bestie, welcome to dir_e_read β it's a kernel API manual page (yes, 9 is the section, that's the kernel devs section, iykyk) and honestly? it's giving "small function, big responsibilities." π
The whole manual name situation is dir_e_read(9) and it lives in the Kernel API Manual, so likeβ¦ that's the vibe check. Let's get into it π«Ά
πΈ NAME πΈ
dir_e_read β literally reads the entries from a directory into a filldir buffer. that's it, that's the whole job. no cap. πβ¨
π SYNOPSIS π
int dir_e_read (struct inode *inode , struct dir_context *ctx , struct file_ra_state *f_ra );
she takes three args and returns an int. periodt. π₯
π¦ ARGUMENTS π¦
inodeβ the directory inode π like, the actual directory object itself, the main character.ctxβ the actor to feed the entries to π think of it as the callback-ish thing that gets handed each entry, very "here bestie, take this."f_raβ the read-ahead parameters π the lil settings that tell the kernel how much to prefetch. obsessed with a good read-ahead config, ngl.
β RETURN β
errno β yep, that's the return value, exactly as written. π that's the whole section. we love a concise king.
π SEE ALSO π
Kernel file ./fs/gfs2/dir.c β and then a whole friend group of functions, all listed here verbatim because every single one matters: gfs2_dir_write_data(9), gfs2_dir_read_data(9), gfs2_dir_get_hash_table(9), gfs2_dir_hash_inval(9), dirent_next(9), dirent_del(9), get_leaf_nr(9), dir_make_exhash(9), dir_split_leaf(9), dir_double_exhash(9), compare_dents(9), do_filldir_main(9), gfs2_dir_readahead(9), gfs2_dir_search(9), dir_new_leaf(9), gfs2_dir_add(9), gfs2_dir_del(9), gfs2_dir_mvino(9), leaf_dealloc(9), gfs2_dir_exhash_dealloc(9), gfs2_diradd_alloc_required(9).
fr fr go read those next, that's the whole friend group and they all ate. π₯
and that's the page!! πΈ cute lil sign-off: this one comes from the source/version ./fs/gfs2, dated October 2026, and the page itself is dir_e_read(9). mwah π go read a directory, 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