tnc_delete(9)
π tnc_delete(9) β the kernel API manual, bestie edition
okay so this is tnc_delete from the 9 section of the Kernel API Manual, and honestly? she's a little workhorse. let's get into it β¨
β¨ NAME β¨
tnc_delete β delete a znode form TNC. (yes the original page literally says "form" instead of "from" and we're keeping it bc it's iconic π the meaning is "from", bestie, don't worry)
π¦ SYNOPSIS π¦
int tnc_delete (struct ubifs_info *c , struct ubifs_znode *znode , int n
);
that's the whole vibe. one function, three args, returns an int. periodt.
π ARGUMENTS π
cβ the UBIFS file-system description object. your whole context, your main character.znodeβ the znode we're deleting from. that's the one getting the makeover πnβ the zbranch slot number to delete. which slot? this slot. be specific.
πΈ DESCRIPTION πΈ
so what does she actually do? this function deletes a leaf node from the n-th slot of znode. that's it, that's the job. no cap.
and the return value? returns zero in case of success and a negative error code in case of failure. so like: 0 = slay, negative = π. check it, always. π«Ά
π SEE ALSO π
all of these live in the kernel file ./fs/ubifs/tnc.c and honestly the friend group is huge β every single one of them, in order, no skipping:
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)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)
lowkey the whole TNC is just one big group chat and tnc_delete is the one who removes a message. the way that's literally her job π§
k bye bestie, go delete that leaf node π this page came to you from ./fs/ubifs, dated October 2026 β mwah, stan the kernel docs ππ
π¦ 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