ubifs_check_hash(9)
π 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
- 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