key_block(9)
π key_block(9) β Kernel API Manual
okay so bestie, welcome to key_block(9) from the Kernel API Manual β¨ this one's a tiny little icon, a one-job wonder, and honestly? we respect a function that knows exactly what it wants π
πΈ NAME
key_block β get data block number. that's it. that's the whole gig π
β¨ SYNOPSIS
unsigned int key_block (const struct ubifs_info *c , const union
ubifs_key *key );
like literally so simple, she takes two things and hands you back an unsigned int π«Ά
π¦ ARGUMENTS
cβ the UBIFS file-system description object, your whole entire filesystem's vibe in one struct π«keyβ the key you want the block number from, give her the key and she'll spill the block π
π§ SEE ALSO
okay this is the part where I introduce you to the whole friend group, they all live in the Kernel file ./fs/ubifs/key.h and they're all slay π
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_hash(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_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)
ngl bestie, if you only remember one thing: key_block grabs the block number out of a key. everything else on that list is just the extended fam π
and that's the page!! brought to you by ./fs/ubifs, dated October 2026, and filed under key_block(9) β mwah, go read some more kernel docs, ily πππ
π¦ 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