validate_nnode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ validate_nnode(9) ✨

okay so bestie, welcome to the validate_nnode(9) page πŸ’… this one lives in the Kernel API Manual and it's literally all about checking that an nnode is valid. no cap, that's the whole vibe.


🌸 NAME 🌸

validate_nnode β€” validate a nnode. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int validate_nnode (const struct ubifs_info *c , struct ubifs_nnode
*nnode , struct ubifs_nnode *parent , int iip );

that's the whole signature, copy it exactly, don't be weird about it 🫢


πŸ’– ARGUMENTS πŸ’–

  • c β€” the UBIFS file-system description object. you know, the context.
  • nnode β€” the nnode you're validating. this is the main character of the function ngl πŸ‘‘
  • parent β€” the parent nnode. and heads up: it can be NULL, which is what you pass for the root nnode 🌈
  • iip β€” the index in the parent. yep, that's it.

πŸ”₯ DESCRIPTION πŸ”₯

so the way this works: this function returns 0 on success and a negative error code on failure. that's the entire description, no more lore, i'm not gonna invent any 😭

fr fr, 0 = slay, negative = something's off. don't forget it.

⭐ SEE ALSO ⭐

bestie there are SO many friends on this list, it's giving group chat with 50 unread messages πŸ™ˆ every single one, here we go:

Kernel file ./fs/ubifs/lpt.c do_calc_lpt_geom(9), ubifs_calc_lpt_geom(9), calc_dflt_lpt_geom(9), pack_bits(9), ubifs_unpack_bits(9), ubifs_pack_pnode(9), ubifs_pack_nnode(9), ubifs_pack_ltab(9), ubifs_pack_lsave(9), ubifs_add_lpt_dirt(9), set_ltab(9), ubifs_add_nnode_dirt(9), add_pnode_dirt(9), calc_nnode_num(9), calc_nnode_num_from_parent(9), calc_pnode_num_from_parent(9), ubifs_create_dflt_lpt(9), update_cats(9), replace_cats(9), check_lpt_crc(9), check_lpt_type(9), unpack_pnode(9), ubifs_unpack_nnode(9), unpack_ltab(9), unpack_lsave(9), validate_pnode(9), set_pnode_lnum(9), ubifs_read_nnode(9), read_pnode(9), read_ltab(9), read_lsave(9), ubifs_get_nnode(9), ubifs_get_pnode(9), ubifs_pnode_lookup(9), ubifs_lpt_lookup(9), dirty_cow_nnode(9), dirty_cow_pnode(9), ubifs_lpt_lookup_dirty(9), ubifs_lpt_calc_hash(9), lpt_check_hash(9), lpt_init_rd(9), lpt_init_wr(9), ubifs_lpt_init(9), struct lpt_scan_node(9), scan_get_nnode(9), scan_get_pnode(9), ubifs_lpt_scan_nolock(9), dbg_chk_pnode(9), dbg_check_lpt_nodes(9)

like, validate_pnode(9) is literally the sibling of this one, go say hi πŸ’œ


and that's the page, periodt. this adorable little doc comes from ./fs/ubifs and it's dated October 2026 β€” shoutout to the source and the date, they ate πŸ’…βœ¨

πŸ“¦ where this page comes from