gfs2_dir_get_hash_table(9)
π gfs2_dir_get_hash_table β a Kernel API Manual moment (section 9, bestie)
okay so real talk, this one's from the Kernel API Manual, section 9, and it's a whole little function called gfs2_dir_get_hash_table. she's short, she's sweet, she does exactly one thing. let's go π
β¨ NAME β¨
gfs2_dir_get_hash_table β get pointer to the dir hash table. that's it. that's the whole job. pointer to the table. slay π«Ά
πΈ SYNOPSIS πΈ
__be64 * gfs2_dir_get_hash_table (struct gfs2_inode *ip );
look at her go. returns a __be64 *, takes a struct gfs2_inode * named ip. iconic signature, no notes β¨
π¦ ARGUMENTS π¦
ipβ the inode in question π like, the inode. the one we're asking about. the main character, fr.
β RETURN β
the hash table, or an error. so likeβ¦ you either get the goods or you get a problem, no in-between, no cap π always check what you got back bestie, don't just assume it's the table.
π SEE ALSO π
it's giving linked list of friends, honestly. go look at the kernel file ./fs/gfs2/dir.c and then say hi to all of these:
gfs2_dir_write_data(9)gfs2_dir_read_data(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)compare_dents(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 friend group π«Ά go read them, iykyk π
ngl this page is tiny but she's doing her best and honestly? she ate π
okay that's the whole page, bestie β and before you go, the receipts: this one lives in ./fs/gfs2 and it's dated October 2026. mwah, go touch some inodes πβπ
π¦ 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