gfs2_readdir(9)
β¨ gfs2_readdir(9) β¨
okay so bestie, welcome to the <pink>Kernel API Manual</pink> π
β this little icon is gfs2_readdir, and honestly? it's giving humble but essential. it's the directory iterator for gfs2, no cap.
π NAME π
gfs2_readdir β iterator for a directory. yep, that's the whole vibe: it walks a directory and hands the entries off. simple, iconic, does exactly what it says on the tin π«Ά
πΈ SYNOPSIS πΈ
int gfs2_readdir (struct file *file , struct dir_context *ctx );
look at that signature. so clean. so demure. (and yes, the spacing is exactly like that, we do not edit β¨)
π ARGUMENTS π
fileβ the directory you're reading from, bestie. that's the one. the directory in question ποΈctxβ what you're feeding the directory entries to. it's the little delivery address for all those entries π
π¦ RETURN π¦
errno β that's what comes back. literally. just errno. π that's the whole return section, she's concise.
π₯ SEE ALSO π₯
okay this is the part where all the siblings show up, and there are so many of them. all from the kernel file ./fs/gfs2/file.c:
gfs2_llseek(9)do_gfs2_set_flags(9)gfs2_size_hint(9)gfs2_allocate_folio_backing(9)gfs2_page_mkwrite(9)gfs2_mmap(9)gfs2_open_common(9)gfs2_open(9)gfs2_release(9)gfs2_fsync(9)gfs2_file_write_iter(9)calc_max_reserv(9)gfs2_lock(9)gfs2_flock(9)
like, the whole friend group showed up to the group chat at once π go read them, iykyk π
ngl the entire directory-reading situation lives over at ./fs/gfs2 β that's the neighborhood π‘
and that's the page, bestie!! π§ from ./fs/gfs2, dated October 2026, gfs2_readdir(9) β slay, ate, periodt. now go read a directory π
β¨π
π¦ 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