ubifs_decompress(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ubifs_decompress β€” the Kernel API Manual glow-up ✨

Okay so bestie, welcome to the ubifs_decompress(9) page β€” this one's from the Kernel API Manual and it's lowkey a little icon: it's the function that takes your squished-up compressed data and un-squishes it back into something real. πŸ¦‹


🌸 NAME 🌸

ubifs_decompress β€” literally decompress data. That's it, that's the whole vibe.


✨ SYNOPSIS ✨

int ubifs_decompress (const struct ubifs_info *c , const void *in_buf ,
int in_len , void *out_buf , int *out_len , int compr_type );

πŸŽ€ ARGUMENTS πŸŽ€

  • c β€” the UBIFS file-system description object, aka the little passport that tells everyone which file system we're dealing with πŸ’…
  • in_buf β€” the data you wanna decompress, sitting there all compressed and mysterious
  • in_len β€” how long that data-to-decompress actually is
  • out_buf β€” the output buffer, aka where the decompressed data should go (yes, the original says "should" and then just stops β€” we respect the cliffhanger πŸ™ˆ)
  • out_len β€” the output length gets returned riiiight here, so this pointer is your little receipt 🧾
  • compr_type β€” the type of compression, bestie. gotta know which flavour we're un-flavouring ✨

πŸ’– DESCRIPTION πŸ’–

Okay so picture this: this function decompresses data from the buffer in_buf and pours it into the buffer out_buf. 🌈

The length of the uncompressed data? That comes back to you in out_len. Obsessed with a function that actually reports back. 🫢

And the return tea: this function returns 0 on success, or a negative error code on failure. No cap. 😭


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/ubifs/compress.c plus the whole friend group:


Bestie note: 0 means slay, negative means uh-oh. That's the whole vibe check. πŸ‘‘

Mwah πŸ’‹ β€” this one lives in ./fs/ubifs, dated October 2026, and it's the ubifs_decompress(9) page from the Kernel API Manual. Go forth and un-squish responsibly, icon. πŸ§šπŸ’œ

πŸ“¦ where this page comes from