generic_ci_d_compare(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… generic_ci_d_compare β€” like, the whole manual page, bestie

okay so real talk: we're deep in the Kernel API Manual today (generic_ci_d_compare(9), if you're keeping track), and this one is a little niche but honestly kind of iconic once you get it. sit down, grab a strawberry drink πŸ“, and let me tell you about the generic d_compare implementation for casefolding filesystems. yes, casefolding β€” the thing that makes your files not care about case. she's serving inclusivity, she's serving convenience. periodt.


✨ NAME ✨

generic_ci_d_compare β€” the generic d_compare implementation for casefolding filesystems. that's it, that's the whole vibe check. πŸ¦‹


🌸 SYNOPSIS 🌸

int generic_ci_d_compare (const struct dentry *dentry , unsigned int len
, const char *str , const struct qstr *name );

look at her. four arguments, one int return, no cap. copy it exactly if you're using it, because I am not about to let you get the signature wrong in front of the whole group chat 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • dentry β€” the dentry whose name we are checking against. she's the main character here, the one we're all here for πŸ‘‘
  • len β€” len of name of dentry. yes, it's literally just the length of the dentry's name, she's not hiding anything πŸ’…
  • str β€” str pointer to name of dentry. this is the actual string pointer to that dentry name, so like, point her the right way please πŸ™ˆ
  • name β€” Name to compare against. the challenger. the opponent. the one who shows up and gets compared πŸ”₯

⭐ RETURN ⭐

  • 0 if names match 🫢 (besties! they match!)
  • 1 if mismatch πŸ’€ (awkward. they don't match. we move)
  • or -ERRNO β€” an error, negative errno style, so keep your eyes peeled for that one
okay so the numbers here actually matter, don't get cute with them β€” 0 means match and 1 means mismatch, and any negative value is an error. those are not interchangeable, bestie ✨

🧚 SEE ALSO 🧚

kernel file ./fs/libfs.c, and then a whole friend group of related functions β€” honestly this list ate, look at all of them:

iykyk πŸ’œ catch you all in the adjacent manpages.


that's the page! source is ./fs, dated October 2026, and we're all wrapped up in generic_ci_d_compare(9) πŸ’– bye bestie, stan casefolding filesystems responsibly 🌈

πŸ“¦ where this page comes from