generic_ci_d_hash(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… generic_ci_d_hash β€” okay so lemme tell you about this one

Bestie, this is a 9 page straight out of the Kernel API Manual, and the function is generic_ci_d_hash. Literally what it says on the tin: it's the generic d_hash implementation for casefolding filesystems. Casefolding girlies stay winning πŸ’–


✨ SYNOPSIS ✨

int generic_ci_d_hash (const struct dentry *dentry , struct qstr *str );

That's the whole mood. Two args in, an int out, no drama 🌸


πŸŽ€ ARGUMENTS πŸŽ€

  • dentry β€” the dentry of the parent directory. Yep, the parent, not the thing itself, don't come for me πŸ™ˆ
  • str β€” the qstr of the name whose hash we should fill in. That's the whole job: fill in the hash, slay, done ✨

πŸ”₯ RETURN πŸ”₯

  • 0 β€” hash was successful or unchanged. Both are a win, no notes πŸ’…
  • -EINVAL β€” an error happened. Not iconic, but it's honest 😭

πŸ¦‹ SEE ALSO πŸ¦‹

The kernel file is ./fs/libfs.c, and it is packed with friends. Go say hi, iykyk:

Like, that's a whole group chat right there. Main character energy from libfs.c fr fr πŸ‘‘


no cap: this lives in ./fs, and the page is dated October 2026. Kernel API Manual behaviour, periodt 🫢

okay that's the page, mwah πŸ’‹ β€” signed, your fav casefolding correspondent, dropping this from ./fs, October 2026, source-and-version style, generic_ci_d_hash(9) icon behaviour only 🌈⭐

πŸ“¦ where this page comes from