tnc_delete(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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