__ubifs_node_insert_hmac(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __ubifs_node_insert_hmac (9) β€” from the Kernel API Manual, bestie ✨

okay so picture this: it's giving kernel-crypto realness, and the main character is a function called __ubifs_node_insert_hmac. this whole page lives in the Kernel API Manual, and it's about smooshing a HMAC right into a UBIFS node. no cap, that's the whole vibe. πŸ¦‹


🌸 NAME 🌸

__ubifs_node_insert_hmac β€” insert a HMAC into a UBIFS node πŸ’…


✨ SYNOPSIS ✨

int __ubifs_node_insert_hmac (const struct ubifs_info *c , void *node ,
int len , int ofs_hmac );

like, literally that's the signature. copy it exactly, don't @ me. πŸŽ€


🫢 ARGUMENTS 🫢

  • c β€” the UBIFS file-system description object. your whole fs situation, basically. πŸ‘‘
  • node β€” the node you're inserting a HMAC into. this is the glow-up target, bestie.
  • len β€” the length of the node. gotta know how big the thing is. πŸ“
  • ofs_hmac β€” the offset in the node where the HMAC gets inserted. like, exactly where the sparkle goes. ✨

πŸ’– DESCRIPTION πŸ’–

so the way this works: this function inserts a HMAC at offset ofs_hmac into the node given in node. that's it, that's the whole job. 🌈

and the tea on the return value? this function returns 0 for success, or a negative error code otherwise. so if you see a negative number, something went off and you should lowkey panic (jk, just handle the error). 😭


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./fs/ubifs/auth.c, plus the whole friend group:


okay that's the page, periodt πŸ’œ from ./fs/ubifs, dated October 2026, and the manual name tag says __ubifs_node_insert_hmac(9) β€” slay, go forth and insert those HMACs responsibly bestie πŸŽ€πŸ”₯

πŸ“¦ where this page comes from