replace_cats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ replace_cats(9) ✨

okay bestie, this is the Kernel API Manual corner of the group chat, and today's main character is replace_cats(9). she's lowkey iconic and highkey here to do one very specific job. it's giving very specific kernel energy 🫢

πŸŽ€ NAME πŸŽ€

replace_cats β€” add LEB properties of a pnode to LEB category lists and heaps. no cap, that's the whole vibe πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

void replace_cats (struct ubifs_info *c , struct ubifs_pnode *old_pnode , struct ubifs_pnode *new_pnode );

πŸ’– ARGUMENTS πŸ’–

  • c β€” UBIFS file-system description object
  • old_pnode β€” pnode copied
  • new_pnode β€” pnode copy

πŸ”₯ DESCRIPTION πŸ”₯

okay so during commit, it is sometimes necessary to copy a pnode β€” see dirty_cow_pnode for that whole situation. when that happens, references in category lists and heaps must be replaced. this function does that. periodt. and honestly? she slays this exact task, iykyk ✨

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./fs/ubifs/lpt.c β€” and then the whole friend group, fr fr:


kisses bestie πŸ’‹ this page is from ./fs/ubifs and is dated October 2026 β€” bye! 🌸

πŸ“¦ where this page comes from