ubifs_check_hash(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ubifs_check_hash β€” a Kernel API Manual moment

okok so this is ubifs_check_hash, bestie, and it lives in the Kernel API Manual (yes that's the manual name, we're fancy now πŸŽ€). Sit down, grab a strawberry drink πŸ“, this one's actually short and it slaps.


✨ SYNOPSIS ✨

int ubifs_check_hash (const struct ubifs_info *c , const u8 *expected ,
                      const u8 *got );

like… that's the whole thing. three args, one int, zero drama πŸ’…


🌸 ARGUMENTS 🌸

  • c β€” the UBIFS file-system description object. it's giving "context, but make it filesystem" πŸ¦‹
  • expected β€” the first hash. the one you thought it was gonna be πŸ‘‘
  • got β€” the second hash. the one you actually got. vibe check time πŸ™ˆ

πŸ’– DESCRIPTION πŸ’–

so the actual job is literally just: compare two hashes, expected and got. that's it. that's the function. no cap ✨

it's a comparison. a little hash-versus-hash moment. main character energy in its purest form πŸ”₯


🫢 RETURN 🫢

  • 0 β€” they're equal πŸ’š everything's fine, nothing to see here, slay
  • a negative error code β€” they're not equal 😭 not me getting a negative error code over this
heads up: the manpage says "a negative error code otherwise" β€” it does not promise a specific one, so don't go assuming a particular value, bestie. fr fr.

🌈 SEE ALSO 🌈

okay this is where it gets unhinged, because the SEE ALSO list is long long. like, the whole ./fs/ubifs/ubifs.h kernel file worth of structs long 😭 but we don't skip, we list. all of them. periodt πŸ’…

  • struct ubifs_old_idx(9)
  • struct ubifs_scan_node(9)
  • struct ubifs_scan_leb(9)
  • struct ubifs_gced_idx_leb(9)
  • struct ubifs_inode(9)
  • struct ubifs_unclean_leb(9)
  • struct ubifs_lprops(9)
  • struct ubifs_lpt_lprops(9)
  • struct ubifs_lp_stats(9)
  • struct ubifs_cnode(9)
  • struct ubifs_pnode(9)
  • struct ubifs_nbranch(9)
  • struct ubifs_nnode(9)
  • struct ubifs_lpt_heap(9)
  • struct ubifs_wbuf(9)
  • struct ubifs_bud(9)
  • struct ubifs_jhead(9)
  • struct ubifs_zbranch(9)
  • struct ubifs_znode(9)
  • struct bu_info(9)
  • struct ubifs_node_range(9)
  • struct ubifs_compressor(9)
  • struct ubifs_budget_req(9)
  • struct ubifs_orphan(9)
  • struct ubifs_mount_opts(9)
  • struct ubifs_budg_info(9)
  • struct ubifs_stats_info(9)
  • struct ubifs_info(9)
  • ubifs_check_hmac(9)
  • ubifs_branch_hash(9)
  • ubifs_copy_hash(9)
  • ubifs_auth_node_sz(9)

and all of that lives in the kernel file ./fs/ubifs/ubifs.h πŸ§šπŸ’œ


aaaand that's the page!! sourced from ./fs/ubifs, stamped October 2026, and it's ubifs_check_hash(9) from the Kernel API Manual β€” go forth and compare hashes responsibly, bestie πŸ’…β­πŸŒΈ

πŸ“¦ where this page comes from