smb_compression_decompress(9)
π NAME π
smb_compression_decompress β decode an SMB2 compression transform. This is the smb_compression_decompress(9) page from the Kernel API Manual, bestie, and it's lowkey iconic. π
β¨ SYNOPSIS β¨
int smb_compression_decompress (__le16 alg , bool allow_chained , bool
allow_pattern , const void *src , u32 slen , void *dst , u32 dlen );
That's the signature, fr fr. π«Ά
πΈ ARGUMENTS πΈ
algβ the negotiated general-purpose compression algorithm. the chosen one of this whole operation, iykyk.allow_chainedβ whether chained transforms were negotiated. the chained-transform vibe check.allow_patternβ whetherPattern_V1payloads were negotiated. the Pattern_V1 negotiation flag, got it.srcβ transform header followed by compressed payload data. the whole little package: header plus payload data.slenβ total number of bytes available atsrc. literally the total byte count atsrc.dstβ output buffer for the reconstructed SMB2 message. this is where the reconstructed message lands. πdlenβ exact expected size of the reconstructed SMB2 message. not approximate, exact. periodt.
π DESCRIPTION π
Okay so the flow is: validate the transform type and the negotiated capabilities first, then dispatch to the chained or unchained decoder. slay. The caller supplies the expected output size after applying its transport-specific message size limits. No cap. β¨
π¦ RETURN π¦
0on success π- otherwise a negative
errnoπ
π SEE ALSO π
- Kernel file
./fs/smb/common/compress/compress.cβ the kernel file to check out. smb_compression_compress_chained(9)β another man page in the group chat.
xoxo π β source/version: ./fs/smb/common/compress; date: October 2026. catch you later, bestie! π«Ά
π¦ 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