__ubifs_node_calc_hash(9)
β¨ __ubifs_node_calc_hash(9) β¨
okay so bestie, welcome to the Kernel API Manual π
this is the page for __ubifs_node_calc_hash β yes the one with the double underscore, she's special like that π
πΈ NAME πΈ
__ubifs_node_calc_hash β calculate the hash of a UBIFS node π§
π¦ SYNOPSIS π¦
int __ubifs_node_calc_hash (const struct ubifs_info *c , const void
*node , u8 *hash );
π ARGUMENTS π
cβ the UBIFS file-system description object ποΈ like, this is the whole vibe of the filesystem in one struct, she's the main characternodeβ the node you want a hash for. yes, that node. hand her over π₯hashβ the returned hash π« it comes back out through here, so this is your output spot, don't lose it
π DESCRIPTION π
The way this function just... does the thing π
it returns 0 for success, or a negative error code otherwise. that's it, that's the whole description, no cap π
fr fr: 0 = slay, negative = something went sideways π
π SEE ALSO π
Kernel file ./fs/ubifs/auth.c β go read her, she's iconic π and also these besties:
ubifs_hash_calc_hmac(9)ubifs_prepare_auth_node(9)__ubifs_hash_get_desc(9)ubifs_bad_hash(9)__ubifs_node_check_hash(9)ubifs_sb_verify_signature(9)ubifs_init_authentication(9)__ubifs_exit_authentication(9)ubifs_node_calc_hmac(9)__ubifs_node_insert_hmac(9)__ubifs_node_verify_hmac(9)ubifs_hmac_wkm(9)
and that's the page, bestie π«Ά sourced straight from ./fs/ubifs, dated October 2026, living under the Kernel API Manual umbrella β periodt πβ
π¦ 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