ENUM D_WALK_RET(9)
β¨ NAME β¨
okay so bestie, this is enum d_walk_ret(9) from the Kernel API Manual β literally the enum that tells you what action to take during tree walk. itβs giving βpick a laneβ energy for dentries, no cap π
π¦ SYNOPSIS π¦
the synopsis is right here, verbatim, because code deserves accuracy:
enum d_walk_ret {
D_WALK_CONTINUE ,
D_WALK_QUIT ,
D_WALK_NORETRY ,
D_WALK_SKIP
};
π Constants π
okay so these are the four constants, and each one is its own little vibe check:
D_WALK_CONTINUEβ continue walk. keep it moving, bestie β¨D_WALK_QUITβ quit walk. bye, walk πD_WALK_NORETRYβ quit when retry is needed. not me bailing the second retry shows up πD_WALK_SKIPβ skip this dentry and its children. not them, not their kids, weβre skipping the whole little family π¦
πΈ SEE ALSO πΈ
Kernel file ./fs/dcache.c is the one, and the whole friend group is:
d_drop(9)dentry_kill(9)__move_to_shrink_list(9)d_find_any_alias(9)d_find_alias(9)prune_dcache_sb(9)shrink_dcache_sb(9)d_walk(9)path_has_submounts(9)shrink_dcache_tree(9)d_invalidate(9)__d_alloc(9)d_alloc(9)d_alloc_pseudo(9)d_instantiate(9)d_obtain_alias(9)d_obtain_root(9)d_add_ci(9)d_same_name(9)__d_lookup_rcu(9)d_lookup(9)__d_lookup(9)d_hash_and_lookup(9)d_delete(9)d_rehash(9)d_add(9)d_ancestor(9)d_splice_alias(9)is_subdir(9)
mwah π thatβs the page β source/version: ./fs; date: October 2026; title: enum d_walk_ret(9). bye 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