ubifs_tnc_add(9)
π ubifs_tnc_add(9) π
okay so bestie, welcome to the Kernel API Manual β yes, the whole manual, and yes we're reading it together, it's fine, it's gonna slay π«Ά
β¨ NAME β¨
ubifs_tnc_add β add a node to TNC. that's it, that's the whole vibe. a node. into the TNC. π
πΈ SYNOPSIS πΈ
int ubifs_tnc_add (struct ubifs_info *c , const union ubifs_key *key ,
int lnum , int offs , int len , const u8 *hash );
like look at her. she's a function. she returns an int. she's iconic. β¨
π ARGUMENTS π
one bullet per bestie, no skipping, periodt:
cβ the UBIFS file-system description object. literally the whole file system's whole personality in one struct.keyβ the key to add. the main character of this operation, ngl.lnumβ the LEB number of the node. which LEB. you know the one.offsβ the node offset. where in the thing she lives.lenβ the node length. how much node there is.hashβ the hash over the node. the node's little fingerprint, π«Ά.
π¦ DESCRIPTION π¦
okay so here's the tea, bestie: this function adds a node with key key to the TNC. π
and like β plot twist β the node may be brand new, or it may obsolete some existing one. both are valid. she contains multitudes. no cap.
she returns 0 on success, or a negative error code on failure. that's the whole contract. that's the deal. π
π SEE ALSO π
now, this is the part where the friend group shows up. hold on, there are a LOT of them, and we are NOT leaving anyone out, because that would be rude and also the manpage said so:
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_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_tnc_has_node(9), ubifs_dirty_idx_node(9), dbg_check_inode_size(9)
like, the whole group chat. every single one. we ate and left no crumbs. π
ngl bestie, that SEE ALSO list is giving main character energy and also mildly giving "final boss of cross-references". respect it. π
and that's the page!! πβ¨ this whole thing came to you straight from ./fs/ubifs, stamped October 2026 β so yeah, save the date, mark your calendar, she's timeless and also very much from the future, iykyk. ππ bye bestie, go add some nodes πβ
π¦ 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