dent_key_init_hash(9)
π dent_key_init_hash(9) β from the Kernel API Manual, bestie
okay so you're in the UBIFS key corner of the kernel and you need a directory entry key, but you already have the hash and you are NOT about to sit there recalculating it like some kind of clown π€ That's literally this function. It initializes a directory entry key without re-calculating the hash function. No cap. π
β¨ SYNOPSIS β¨
void dent_key_init_hash (const struct ubifs_info *c , union ubifs_key
*key , ino_t inum , uint32_t hash );
like, it returns void β nothing comes back, it just fills in your key and vibes. π¦
πΈ ARGUMENTS πΈ
cβ the UBIFS file-system description object. your whole filesystem's little passport, basically πkeyβ the key you're initializing. the main character, the one getting filled in πinumβ the parent inode number π§¬hashβ the direntry name hash. yes, the one you already have. that's the whole point, iykyk π
π₯ SEE ALSO π₯
Kernel file ./fs/ubifs/key.h β and honestly the whole key.h friend group, they all ate:
key_mask_hash(9)key_r5_hash(9)key_test_hash(9)ino_key_init(9)ino_key_init_flash(9)lowest_ino_key(9)highest_ino_key(9)dent_key_init(9)dent_key_init_flash(9)lowest_dent_key(9)xent_key_init(9)xent_key_init_flash(9)lowest_xent_key(9)data_key_init(9)highest_data_key(9)trun_key_init(9)invalid_key_init(9)key_type(9)key_type_flash(9)key_inum(9)key_inum_flash(9)key_hash(9)key_hash_flash(9)key_block(9)key_block_flash(9)key_read(9)key_write(9)key_write_idx(9)key_copy(9)keys_cmp(9)keys_eq(9)is_hash_key(9)key_max_inode_size(9)
π«Ά that's the whole page, go build something iconic. this one's coming at you from ./fs/ubifs, dated October 2026 β mwah, ily, periodt β¨π
π¦ 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