ubifs_decompress(9)
β¨ 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 mysteriousin_lenβ how long that data-to-decompress actually isout_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:
ubifs_compress(9)ubifs_compress_folio(9)ubifs_decompress_folio(9)compr_init(9)compr_exit(9)ubifs_compressors_init(9)ubifs_compressors_exit(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms