ksmbd_decompress_request(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

ksmbd_decompress_request β€” replace a compressed request with its SMB2 PDU. This page is from the Kernel API Manual, bestie πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

int ksmbd_decompress_request (struct ksmbd_conn *conn );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • conn β€” the connection that owns the current RFC1002 request buffer, periodt 🫢

🌸 DESCRIPTION 🌸

Okay so here’s the vibe: this function takes a compressed request and gives it the full main-character glow-up into its SMB2 PDU form ✨

It derives the uncompressed size from the transform variant, enforces ksmbd’s normal message limits, and asks the common decoder to validate every payload. No skipping the vibe check, ngl πŸ’…

On success, it replaces conn->request_buf with a regular RFC1002-framed SMB2 message. The way that works means the rest of the request path needs no compression awareness at all 😌 iconic behavior, honestly.

πŸ’œ RETURN πŸ’œ

0 on success, otherwise a negative errno. That’s it, that’s the tea πŸ“

πŸ‘‘ SEE ALSO πŸ‘‘


Source/version: ./fs/smb/server Β· Date: October 2026 Β· Page: ksmbd_decompress_request(9) β€” mwah, go read the kernel docs bestie πŸ’–πŸŒˆπŸ¦‹

πŸ“¦ where this page comes from