ubifs_replace_cat(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ubifs_replace_cat β€” the Kernel API Manual moment

okay so bestie, this is ubifs_replace_cat(9), straight out of the Kernel API Manual and honestly? it's giving "small function, big responsibilities." let's get into it 🫢


✨ NAME ✨

ubifs_replace_cat β€” replace lprops in a category list or heap. periodt. πŸ’«


🌸 SYNOPSIS 🌸

void ubifs_replace_cat (struct ubifs_info *c , struct ubifs_lprops
*old_lprops , struct ubifs_lprops *new_lprops );

like yes it's void, it returns nothing, it's not here to give you a status code, it's here to do the thing and leave. main character energy fr. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • c β€” the UBIFS file-system description object. the whole vibe of the filesystem lives in here, no cap.
  • old_lprops β€” the LEB properties you're replacing. the ones getting swapped out, bestie. πŸ™ˆ
  • new_lprops β€” the LEB properties you're replacing them with. the glow-up version. ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so context: during commit, sometimes you lowkey have to copy a pnode (see dirty_cow_pnode) β€” and when you copy a pnode, the lprops that the pnode contains come along with it. literally a package deal. πŸ’–

and the way that when that happens, the references in category lists and heaps have to be replaced?? yeah. that's the whole entire situation. this function handles it. it does that. that's it, that's the function. slay. πŸ’…

no like seriously, that's the described job β€” it replaces those references and nothing else. don't go inventing extra behaviour, iykyk. 🧚

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/ubifs/lprops.c β€” plus the whole friend group:


and that's the page, bestie!! πŸ“ this one's filed under ./fs/ubifs and stamped October 2026, and yeah we're closing out on ubifs_replace_cat(9) β€” go read the source, ily, bye πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from