ubifs_check_hmac(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ubifs_check_hmac β€” like, the kernel API manual, bestie ✨

okay so you're in the ubifs_check_hmac(9) glow-up era of the Kernel API Manual and honestly? iconic. this is the page where we compare two HMACs and you find out if they're giving the same energy or not 🫢


✨ NAME ✨

ubifs_check_hmac β€” literally just compare two HMACs, that's the whole vibe check πŸ’–


🌸 SYNOPSIS 🌸

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

πŸŽ€ ARGUMENTS πŸŽ€

  • c β€” the UBIFS file-system description object, aka the main character of this whole situation πŸ‘‘
  • expected β€” the first HMAC, the one you're hoping it matches πŸ₯Ί
  • got β€” the second HMAC, the one reality actually handed you πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

Compare two hashes, expected and got. that's it, that's the function. no cap, it's a whole little moment of truth where the two of them get held up next to each other 🌈


⭐ RETURN ⭐

  • 0 when they are equal β€” slay, they match, we love a harmonious outcome πŸ’…
  • a negative error code otherwise β€” not me, not the match, tragic but honestly expected 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/ubifs/ubifs.h plus the entire friend group, fr fr:

  • 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_hash(9)
  • ubifs_branch_hash(9)
  • ubifs_copy_hash(9)
  • ubifs_auth_node_sz(9)

okay but seriously bestie, go read them if you wanna actually understand the file system πŸ’œ this page is a snack, not the whole meal πŸ“

and that's the whole page, mwah πŸ’‹ β€” brought to you by <rainbow>./fs/ubifs</rainbow>, dated October 2026, man page ubifs_check_hmac(9). go be great, ily, bye 🧚✨

πŸ“¦ where this page comes from