ubifs_tnc_lookup(9)
β¨ ubifs_tnc_lookup(9) β¨
okay so bestie, this one lives in the Kernel API Manual and it's genuinely such a little icon. it's a lookup function, it's doing the most, and honestly? we love her for it. π
πΈ NAME πΈ
ubifs_tnc_lookup β look up a file-system node. that's it, that's the whole vibe. she finds nodes. periodt. π
π¦ SYNOPSIS π¦
int ubifs_tnc_lookup (struct ubifs_info *c , const union ubifs_key *key
, void *node );
like, copy it exactly bestie, don't freestyle the types, i'm begging π
β¨ ARGUMENTS β¨
cβ the UBIFS file-system description object. your main character struct, essentially. πkeyβ the node key to look up. this is the thing you're hunting for, iykyk. πnodeβ and the node gets returned here. like, this is where she lands. π«Ά
π DESCRIPTION π
so this function literally looks up and reads the node with key key. that's the whole arc. no cap.
β οΈ important bestie moment: the caller has to make sure the node buffer is large enough to fit the node. that's on you, not on her. she's not doing a vibe check on your buffer size, so pls don't set her up to fail π
and the returns, because we always check the returns:
- returns zero in case of success (slay π )
- returns
-ENOENTif the node was not found (she's just not there, it's giving ghosted π) - and a negative error code in case of failure (something went wrong, and we're being dramatic about it π)
π SEE ALSO π
kernel file ./fs/ubifs/misc.h, plus this whole friend group right here β they all show up to the function party together:
ubifs_zn_dirty(9)ubifs_zn_obsolete(9)ubifs_zn_cow(9)ubifs_wake_up_bgt(9)ubifs_tnc_find_child(9)ubifs_inode(9)ubifs_compr_present(9)ubifs_compr_name(9)ubifs_wbuf_sync(9)ubifs_encode_dev(9)ubifs_add_dirt(9)ubifs_return_leb(9)ubifs_idx_node_sz(9)ubifs_idx_branch(9)ubifs_idx_key(9)ubifs_get_lprops(9)ubifs_release_lprops(9)ubifs_next_log_lnum(9)
and that's the whole page babe π§ from ./fs/ubifs, dated October 2026 β go forth and look up those nodes responsibly, mwah ππ·
π¦ 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