is_leaf_node_in_tnc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… is_leaf_node_in_tnc(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” today's main character is is_leaf_node_in_tnc, and honestly? she's a little detective πŸ•΅οΈβ€β™€οΈ who just wants to know if a node is showing up in the TNC or not. let's get into it ✨


🌸 NAME 🌸

is_leaf_node_in_tnc β€” determine if a non-indexing not is in the TNC.

yes the manpage literally says "not" instead of "node" 😭 we are NOT fixing her, she's iconic like that. you know what she means 🫢

✨ SYNOPSIS ✨

int is_leaf_node_in_tnc (struct ubifs_info *c , union ubifs_key *key ,
int lnum , int offs );

that's the whole vibe. four args, one int coming back at you πŸ’œ


πŸŽ€ ARGUMENTS πŸŽ€

  • c β€” the UBIFS file-system description object. your whole filesystem context, basically the group chat she's asking about πŸ’¬
  • key β€” node key. the ID badge of the node in question πŸͺͺ
  • lnum β€” node LEB number. which LEB it's chilling in 🏠
  • offs β€” node offset. exactly where inside that LEB it sits πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• this function returns 1 if the node is referred to in the TNC, 0 if it is not, and a negative error code in case of failure. three possible outcomes, one int, no cap πŸ”₯

⚠️ heads up bestie: this function relies on the fact that 0:0 is never a valid LEB number and offset for a main-area node. that's the whole trick she's built on β€” do not come for her assumptions, she's aware πŸ’…

🌈 SEE ALSO 🌈

Kernel file ./fs/ubifs/tnc.c β€” and okay this list is LONG, so buckle up, we're naming everyone in the friend group πŸ˜­πŸ’–

every single one, accounted for, nobody left on read πŸ‘‘βœ¨


okay that's the page!! mwah πŸ’‹ this whole thing lives in ./fs/ubifs and it's stamped October 2026 β€” so go forth, call your leaf-node checker, and slay πŸ§šβ€β™€οΈπŸŒΈπŸ“

πŸ“¦ where this page comes from