gfs2_readdir(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:

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