z_compress(9)
β¨ NAME β¨
Okay bestie, this is z_compress(9) β from the Kernel API Manual β and it's literally the function that compresses a PPP packet with Deflate compression. No cap, that's the whole main-character gig. π
πΈ SYNOPSIS πΈ
int z_compress (void *arg , unsigned char *rptr , unsigned char *obuf ,
int isize , int osize );
π ARGUMENTS π
argβ pointer to private state for the compressor π«Άrptrβ uncompressed packet (input) πΈobufβ compressed packet (output) β¨isizeβ size of uncompressed packet πosizeβ space available atobufπ¦
π DESCRIPTION π
So what does it give back? It returns the length of the compressed packet, or 0 if the packet is incompressible. That's it β literally the whole description, and honestly iconic. π If it's incompressible, 0 is your answer, bestie. Periodt.
π₯ SEE ALSO π₯
- Kernel file:
./drivers/net/ppp/ppp_deflate.c z_comp_free(9)z_comp_alloc(9)z_comp_init(9)z_comp_reset(9)z_comp_stats(9)z_decomp_free(9)z_decomp_alloc(9)z_decomp_init(9)z_decomp_reset(9)z_decompress(9)z_incomp(9)
Cute footer sign-off: source ./drivers/net/ppp, date October 2026, page z_compress(9) β ty for reading bestie, mwah π«Άπ
π¦ 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