compare_dents(9)
π compare_dents(9) β like, the kernel API manual, but make it make sense π
okay so bestie, welcome to compare_dents(9) from the Kernel API Manual β¨ this one is short but she is mighty, and honestly? she's giving comparator-core π
πΈ NAME πΈ
compare_dents β compares directory entries by their hash value, no cap π₯
β¨ SYNOPSIS β¨
int compare_dents (const void *a , const void *b );
that's it. that's the whole signature. she's compact, she's iconic, she's literally two const void * besties and an int π
π¦ ARGUMENTS π¦
aβ the first dent πbβ the second dent πΈ
two dents, one comparison, main character energy all around π
π DESCRIPTION π
so when you're comparing the hash entries of a to b, here's the whole vibe check π
- gt (greater than, iykyk) β returns
1π₯ - lt (less than, we've all been there) β returns
-1π - eq (equal, twin flame behaviour) β returns
0π«Ά
that's literally it bestie β it's a comparator, she compares, she returns, she leaves. periodt β¨
π SEE ALSO π
the kernel file ./fs/gfs2/dir.c, plus this whole friend group right here π
gfs2_dir_write_data(9)gfs2_dir_read_data(9)gfs2_dir_get_hash_table(9)gfs2_dir_hash_inval(9)dirent_next(9)dirent_del(9)get_leaf_nr(9)dir_make_exhash(9)dir_split_leaf(9)dir_double_exhash(9)do_filldir_main(9)gfs2_dir_readahead(9)dir_e_read(9)gfs2_dir_search(9)dir_new_leaf(9)gfs2_dir_add(9)gfs2_dir_del(9)gfs2_dir_mvino(9)leaf_dealloc(9)gfs2_dir_exhash_dealloc(9)gfs2_diradd_alloc_required(9)
like, the whole squad showed up ππ go read them, i'm begging π
heads up bestie: this page lives at ./fs/gfs2 in the source tree, so if you go looking for her, that's where she's at π§ββοΈ
that's the page, you ate that π
source is ./fs/gfs2, and she was dated October 2026 β literally a future icon β bye bestie, go compare some dents πππ¦
π¦ 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