ubifs_tnc_has_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ubifs_tnc_has_node(9) β€” Kernel API Manual πŸŽ€

okay bestie, welcome to the Kernel API Manual page for ubifs_tnc_has_node πŸ’– β€” the function that does the TNC vibe check on a node. no cap, let’s get into it.

🌸 NAME 🌸

ubifs_tnc_has_node β€” determine whether a node is in the TNC, periodt.

✨ SYNOPSIS ✨

int ubifs_tnc_has_node (struct ubifs_info *c , union ubifs_key *key ,
       int level , int lnum , int offs , int is_idx );

🫢 ARGUMENTS 🫢

  • c β€” UBIFS file-system description object. the main character struct, iykyk.
  • key β€” node key.
  • level β€” index node level (if it is an index node).
  • lnum β€” node LEB number.
  • offs β€” node offset.
  • is_idx β€” non-zero if the node is an index node.

πŸ”₯ DESCRIPTION πŸ”₯

This function returns 1 if the node is in the TNC, 0 if it is not, and a negative error code in case of failure. so: <green>1</green> = it’s in, <red>0</red> = nope, negative = something went wrong, sorry bestie 😭.

For index nodes, key has to be the key of the first child. like, that’s the rule, no substitutions.

Caveat that matters: an index node is considered to be in the TNC only if the corresponding znode is clean or has not been loaded. keep that in mind, bestie 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./fs/ubifs/tnc.c: insert_old_idx(9), insert_old_idx_znode(9), ins_clr_old_idx_znode(9), destroy_old_idx(9), copy_znode(9), add_idx_dirt(9), replace_znode(9), dirty_cow_znode(9), lnc_add(9), lnc_free(9), tnc_read_hashed_node(9), try_read_node(9), fallible_read_node(9), matches_name(9), get_znode(9), tnc_next(9), tnc_prev(9), resolve_collision(9), fallible_matches_name(9), fallible_resolve_collision(9), matches_position(9), resolve_collision_directly(9), dirty_cow_bottom_up(9), ubifs_lookup_level0(9), lookup_level0_dirty(9), maybe_leb_gced(9), ubifs_tnc_locate(9), ubifs_tnc_get_bu_keys(9), read_wbuf(9), validate_data_node(9), ubifs_tnc_bulk_read(9), do_lookup_nm(9), ubifs_tnc_lookup_nm(9), ubifs_tnc_lookup_dh(9), correct_parent_keys(9), insert_zbranch(9), tnc_insert(9), ubifs_tnc_add(9), ubifs_tnc_replace(9), ubifs_tnc_add_nm(9), tnc_delete(9), ubifs_tnc_remove(9), ubifs_tnc_remove_nm(9), ubifs_tnc_remove_dh(9), key_in_range(9), ubifs_tnc_remove_range(9), ubifs_tnc_remove_ino(9), ubifs_tnc_next_ent(9), tnc_destroy_cnext(9), ubifs_tnc_close(9), left_znode(9), right_znode(9), lookup_znode(9), is_idx_node_in_tnc(9), is_leaf_node_in_tnc(9), ubifs_dirty_idx_node(9), dbg_check_inode_size(9).

Signing off with source/version ./fs/ubifs and date October 2026 β€” mwah, stay slaying πŸ’‹βœ¨

πŸ“¦ where this page comes from