key_copy(9)
π key_copy(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a tiny little legend from the UBIFS corner of the kernel, and it is literally one job: copy a key. that's it. that's the whole vibe. no cap. π
πΈ NAME πΈ
key_copy β copy a key. π«Ά
like, take a key and make another key that's the same key. iconic behaviour, honestly.
β¨ SYNOPSIS β¨
void key_copy (const struct ubifs_info *c , const union ubifs_key *from
, union ubifs_key *to );
look at her. she returns void, she takes three things, she does not miss. π
π ARGUMENTS π
cβ the UBIFS file-system description object π¦ (yes bestie, the whole filesystem's little info blob, she needs it)fromβ the key to copy from π (the original, the main character, the source of truth)toβ the key to copy to π« (the destination, the one getting the glow-up)
π₯ SEE ALSO π₯
Kernel file ./fs/ubifs/key.h β and omg the friend group is huge, get comfy π:
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(9)key_block_flash(9)key_read(9)key_write(9)key_write_idx(9)keys_cmp(9)keys_eq(9)is_hash_key(9)key_max_inode_size(9)
every single one of them. no skips, no cuts, we support the whole squad π
and that's the page, bestie!! mwah π this gem lives in ./fs/ubifs and it's stamped October 2026 β go forth and copy those keys, you absolute icon πβ
π¦ 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