ubifs_destroy_idx_gc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ubifs_destroy_idx_gc (9) β€” the Kernel API Manual page, bestie edition ✨

okay so you found the page, welcome to the <purple>Kernel API Manual</purple> section, we're doing UBIFS internals today and honestly it's giving very niche but very iconic πŸŽ€


πŸ’– NAME πŸ’–

ubifs_destroy_idx_gc β€” destroys the idx_gc list. that's it. that's the whole vibe. lowkey the most self-explanatory name in the entire kernel and I respect it fr fr πŸ’…


🌸 SYNOPSIS 🌸

void ubifs_destroy_idx_gc (struct ubifs_info *c );
not me pointing out that the signature says void and then the DESCRIPTION starts talking about return values 😭 β€” I'm just the messenger, bestie, I don't make the rules πŸ™ˆ

πŸ¦‹ ARGUMENTS πŸ¦‹

  • c β€” the UBIFS file-system description object. yeah. that's the one. the whole filesystem, in a struct, right there in your hand 🫢

✨ DESCRIPTION ✨

so this function destroys the c->idx_gc list. that's the move. that's what it does πŸ’€

it gets called when unmounting, which is the key detail here β€” because of that, locks are not needed, and honestly? good for her. no locking, no stress, no drama, just teardown 🧚

and per the page: it returns zero in case of success and a negative error code in case of failure. yes, on a void function. yes, we're all just going to sit with that together. no cap. ⭐


🌈 SEE ALSO 🌈

Kernel file ./fs/ubifs/gc.c β€” go read it, the source is right there, iykyk πŸ‘‘

like, the whole gc.c friend group showed up to the function call, obsessed with the attendance πŸ’œ


anyway bestie that's the page πŸŽ€ this whole thing lives under ./fs/ubifs, dated October 2026 β€” mwah, slay, go unmount something responsibly βœ¨πŸ’…

πŸ“¦ where this page comes from