move_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« move_node(9) β€” the Kernel API Manual glow-up πŸ’«

okay so bestie, we're in the Kernel API Manual today and the star of the show is move_node, a little function from the UBIFS world that literally just... moves a node. iconic behavior honestly. let's get into it πŸŽ€


✨ NAME ✨

move_node β€” move a node. that's it. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

int move_node (struct ubifs_info *c , struct ubifs_scan_leb *sleb ,
struct ubifs_scan_node *snod , struct ubifs_wbuf *wbuf );

like, four arguments, one int coming back at you. she's compact, she's efficient, she's giving main character energy πŸ‘‘


πŸ’… ARGUMENTS πŸ’…

  • c β€” the UBIFS file-system description object. yes bestie, the whole filesystem's little biography. 🫢
  • sleb β€” describes the LEB to move nodes from. that's your starting point, your origin story. ✨
  • snod β€” the mode to move. (the manual says "mode", we're keeping it exactly as the manual says it, no cap. πŸ™ˆ)
  • wbuf β€” write-buffer to move node to. destination era. πŸš€

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea β˜• β€” this function moves node snod to wbuf, changes TNC correspondingly, and destroys snod. like, not "gently retires", not "archives" β€” destroys. gone. πŸ’€

returns zero in case of success and a negative error code in case of failure. so like, 0 = slay, negative = not slay. simple as that fr fr 🌈

bestie please note: snod does NOT survive this function. do not go looking for it afterward. it's giving "she left the group chat." 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./fs/ubifs/gc.c plus this whole squad right here β€” go read them, they're all linked up iykyk:


🌟 sign-off 🌟

this lil page lives in ./fs/ubifs, dated October 2026, and it's presented to you by the Kernel API Manual. go forth and move those nodes, bestie β€” responsibly, and remember: 0 on success, negative on failure, and snod does not come back. πŸ’–πŸ§šβ­

πŸ“¦ where this page comes from