__ubifs_node_check_hash(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __ubifs_node_check_hash β€” Kernel API Manual moment

okay so bestie, welcome to the glamorous world of UBIFS authentication ✨ this little function lives in the Kernel API Manual and it is literally the vibe check for your nodes πŸ’–


πŸŽ€ NAME πŸŽ€

__ubifs_node_check_hash β€” check the hash of a node against given hash

no cap, that's the whole gig: you got a node, you got a hash, and we're gonna find out if they're actually matching πŸ‘‘


✨ SYNOPSIS ✨

int __ubifs_node_check_hash (const struct ubifs_info *c , const void *node , const u8 *expected );

three args, one int, zero drama 🫢


🌸 ARGUMENTS 🌸

  • c β€” the UBIFS file-system description object πŸ’« your whole filesystem's little identity card
  • node β€” literally the node πŸ“¦ the thing we're hashing, bestie
  • expected β€” the expected hash 🎯 the one we're comparing against, u8 pointer and all

πŸ¦‹ DESCRIPTION πŸ¦‹

so the way this works 😭 this function calculates a hash over a node and compares it to the given hash.

Returns 0 if both hashes are equal or authentication is disabled 😌 otherwise a negative error code is returned πŸ’€ like, it's giving "nope, not today."

fr fr, 0 is the green flag here β€” equal hashes or auth being off both get you the 0. Anything else? negative error code, and you already know what that means πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./fs/ubifs/auth.c β€” and the whole friend group πŸ’œ

like, the entire auth.c cinematic universe 🌈 iykyk


lowkey obsessed with how tidy this whole thing is πŸŽ€ ./fs/ubifs brought us this gem back in October 2026, and honestly? iconic. slay, periodt, go check those hashes bestie πŸ’…πŸ”₯
πŸ“¦ where this page comes from