ubifs_add_dirt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ ubifs_add_dirt(9) β€” the Kernel API Manual bestie πŸ’…

okay so real talk, this is a page from the Kernel API Manual, and it's about ubifs_add_dirt(9) β€” yes the manual name has a (9) in it, that's just how kernel docs roll, iykyk ✨


✨ NAME ✨

ubifs_add_dirt β€” adds dirty space to LEB properties, that's literally the whole vibe πŸŽ€


🌸 SYNOPSIS 🌸

int ubifs_add_dirt (struct ubifs_info *c , int lnum , int dirty );

like, that's the whole signature, she's short and she knows it πŸ‘‘


πŸ’– ARGUMENTS πŸ’–

  • c β€” the UBIFS file-system description object, aka the main character of this whole operation 🫢
  • lnum β€” the LEB you're adding dirty space for, like which one, be specific bestie πŸ“
  • dirty β€” the dirty space to add, the actual amount, the number, the whole point πŸ’€

πŸ”₯ DESCRIPTION πŸ”₯

so this is a helper function, right? and what she does is she increases the amount of dirty LEB space. that's it. that's the job. no cap ✨

she returns zero in case of success β€” slay, zero is good here, don't panic 😌 β€” and a negative error code in case of failure, which is your cue to go "hmm" and check your life choices πŸ™ˆ

ngl, "zero means success" trips people up every single time, so like… remember it πŸ’œ

🌈 SEE ALSO 🌈

kernel file ./fs/ubifs/misc.h β€” go read it, it's giving source of truth πŸ“–

and the whole friend group of related functions, all present and accounted for:

like, the whole squad fr fr πŸ§šβ€β™€οΈ


and that's the page, bestie!! no thoughts, just dirty LEB space πŸ’…

this little gem lives over in ./fs/ubifs (that's the source, periodt), dated October 2026, and she answers to the name ubifs_add_dirt(9) β€” remember it, cite it, put it on a sticker πŸ“β­πŸ‘‘

πŸ“¦ where this page comes from