generic_ci_d_hash(9)
π 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β theqstrof 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:
simple_offset_init(9)simple_offset_add(9)simple_offset_remove(9)simple_offset_rename(9)simple_offset_rename_exchange(9)simple_offset_destroy(9)offset_dir_llseek(9)offset_readdir(9)simple_rename_timestamp(9)simple_setattr(9)simple_write_end(9)simple_read_from_buffer(9)simple_write_to_buffer(9)memory_read_from_buffer(9)generic_encode_ino32_fh(9)generic_fh_to_dentry(9)generic_fh_to_parent(9)simple_fsync_noflush(9)simple_fsync(9)generic_check_addressable(9)simple_get_link(9)generic_ci_d_compare(9)generic_ci_match(9)generic_set_sb_d_ops(9)inode_maybe_inc_iversion(9)inode_query_iversion(9)simple_inode_init_ts(9)path_from_stashed(9)simple_start_creating(9)
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
- 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