d_walk(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… d_walk(9) β€” bestie's guide to walking the dentry tree πŸ¦‹

okay so this is from the Kernel API Manual, section 9, and it's literally called d_walk β€” yes it walks the dentry tree, the name ate and left no crumbs πŸ’…


✨ SYNOPSIS ✨

void d_walk (struct dentry *parent , void *data , enum d_walk_ret
(*enter)(void *, struct dentry *) );

no cap, that's the whole signature β€” a parent dentry, your data blob, and an enter callback. that's it, that's the vibe πŸŽ€


🌸 ARGUMENTS 🌸

  • parent β€” where the walk starts. the starting point, the main character, the origin story 🫢
  • data β€” the data that gets passed along to enter and to finish. it makes the whole journey with you, no leaving anyone behind πŸ’–
  • enter β€” the callback that fires when you first enter the dentry. first impressions matter, bestie ✨

πŸ‘‘ DESCRIPTION πŸ‘‘

ngl the description is short and iconic: the enter callbacks are called with d_lock held. πŸ”₯

like… that's the whole thing. d_lock is held when your enter callback runs. noted, memorized, tattooed, periodt. πŸ’€

real talk: since it's held for you, don't go doing anything cursed in there β€” the manpage doesn't elaborate, so i'm not gonna invent lore. just know the lock is held, iykyk.

🌈 SEE ALSO 🌈

here's the whole friend group, all from the Kernel file ./fs/dcache.c β€” every single one, in order, because i don't do half-finished playlists πŸ’œ

the way that's a whole squad 😭 go read enum d_walk_ret(9) first tho, it's giving prerequisites 🧚


πŸ“ SIGN-OFF πŸ“

this lil page lives in ./fs, and it's dated October 2026 β€” go off, future girlies πŸ’…βœ¨

stay locked, stay walked, and don't forget the d_lock bestie πŸ˜ŒπŸ’–

πŸ“¦ where this page comes from