__insert_inode_hash(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __insert_inode_hash(9) ✨

okay so bestie, we're in the Kernel API Manual today and this one is short but mighty 🫢 it's literally one function and it's giving "small but essential" main character energy, so let's get into it πŸ’…


🌸 NAME 🌸

__insert_inode_hash β€” hash an inode, that's the whole vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void __insert_inode_hash (struct inode *inode , u64 hashval );

πŸ’– ARGUMENTS πŸ’–

  • inode β€” an unhashed inode ✨ like, it's not in the hash yet, that's the whole point, that's why we're here.
  • hashval β€” a u64 value that gets used to locate this object in the inode_hashtable. yep, that's literally its job πŸ’«

πŸ‘‘ DESCRIPTION πŸ‘‘

Add an inode to the inode hash for this superblock. that's it. that's the function. no cap 😌 the way that it just does one thing and does it well?? iconic behavior honestly 🌈


πŸŽ€ SEE ALSO πŸŽ€

Kernel file ./fs/inode.c β€” plus the whole friend group lmaooo, here's everyone:

inode_init_always_gfp(9), alloc_inode(9), drop_nlink(9), clear_nlink(9), set_nlink(9), inc_nlink(9), inode_sb_list_add(9), __remove_inode_hash(9), evict_inodes(9), new_inode(9), unlock_new_inode(9), lock_two_nondirectories(9), unlock_two_nondirectories(9), inode_insert5(9), iget5_locked(9), iget5_locked_rcu(9), iget_locked(9), iunique(9), ihold(9), ilookup5_nowait(9), ilookup5(9), ilookup(9), find_inode_nowait(9), find_inode_rcu(9), find_inode_by_ino_rcu(9), iput(9), iput_not_last(9), bmap(9), inode_update_time(9), generic_update_time(9), atime_needs_update(9), file_remove_privs(9), current_time(9), file_update_time(9), file_modified_flags(9), file_modified(9), kiocb_modified(9), inode_init_owner(9), inode_owner_or_capable(9), inode_dio_wait(9), timestamp_truncate(9), inode_set_ctime_current(9), inode_set_ctime_deleg(9), in_group_or_capable(9), mode_strip_sgid(9), dump_inode(9)

like, that's a lot of besties but every single one of them is valid and you should check them out fr fr πŸ’œ


lowkey a serve that this whole page lives in ./fs and dropped back in October 2026 🌸 so yeah, that's the source and the date β€” consider this your cute lil sign-off, mwah πŸ’‹ go hash that inode bestie, you're gonna slay βœ¨πŸ‘‘
πŸ“¦ where this page comes from