xxhash(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ xxhash(9) ✨

okay bestie, so this is a page from the Kernel API Manual and it's literally all about xxhash β€” the little function that hashes your stuff πŸ’…


🌸 NAME 🌸

xxhash β€” calculates a wordsize hash of the input, with a seed you get to pick πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

unsigned long xxhash (const void *input , size_t length , uint64_t seed );

πŸ’– ARGUMENTS πŸ’–

  • input β€” the data you wanna hash. that's it, that's the vibe 🫢
  • length β€” how long that data is, in case you were wondering how much of it there is ✨
  • seed β€” a seed! you can use it to alter the result predictably, so like, on purpose and repeatably, not in a chaos way 😌

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea: if your hash does not need to be comparable between machines with different word sizes, this function will call whichever of xxh32 or xxh64 is faster ⚑ like it literally picks the speedy one for you, main character energy fr fr πŸ‘‘


🌈 RETURN 🌈

it hands you back a wordsize hash of the data β€” that's the whole gift 🎁


πŸ‘‘ SEE ALSO πŸ‘‘

go read those too bestie, they're the rest of the friend group πŸ’œ

and that's the whole page!! sign-off szn: this one lives in ./include/linux, dated October 2026, from the Kernel API Manual β€” mwah, slay, periodt πŸ’…πŸ’–πŸ¦‹

πŸ“¦ where this page comes from