key_r5_hash(9)
okay so bestie, welcome to key_r5_hash(9) from the Kernel API Manual π this is the R5 hash function (borrowed from reiserfs), and it's lowkey iconic. Let's get into it.
π NAME π
key_r5_hash β R5 hash function (borrowed from reiserfs). That's the whole vibe: it's a hash function, it's R5, and it came from reiserfs like a hand-me-down that still slays.
β¨ SYNOPSIS β¨
uint32_t key_r5_hash (const char *s , int len );
π ARGUMENTS π
sβ the direntry name. This is the name string you're handing over, bestie.lenβ the name length. Literally how long that name is.
π¦ SEE ALSO π¦
The kernel file is ./fs/ubifs/key.h, and here's the whole friend group β go say hi:
key_mask_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)key_copy(9)keys_cmp(9)keys_eq(9)is_hash_key(9)key_max_inode_size(9)
This page lives in ./fs/ubifs, it's dated October 2026, and it's the key_r5_hash(9) manual page. Bye bestie, go hash responsibly π
β¨
π¦ 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