crypto/deflate.c
Source file repositories/reference/linux-study-clean/crypto/deflate.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/deflate.c- Extension
.c- Size
- 5606 bytes
- Lines
- 265
- Domain
- Kernel Services
- Bucket
- crypto
- Inferred role
- Kernel Services: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Shared kernel service surface used by multiple subsystems, including helpers, cryptography, virtualization support, and async I/O infrastructure.
- Shared kernel service surface used by multiple subsystems, including helpers, cryptography, virtualization support, and async I/O infrastructure.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
crypto/internal/acompress.hcrypto/scatterwalk.hlinux/init.hlinux/kernel.hlinux/module.hlinux/mutex.hlinux/overflow.hlinux/percpu.hlinux/scatterlist.hlinux/slab.hlinux/spinlock.hlinux/zlib.h
Detected Declarations
struct deflate_streamfunction deflate_free_streamfunction deflate_compress_onefunction deflate_compressfunction deflate_decompress_onefunction deflate_decompressfunction deflate_initfunction deflate_mod_initfunction deflate_mod_finimodule init deflate_mod_init
Annotated Snippet
module_init(deflate_mod_init);
module_exit(deflate_mod_fini);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Deflate Compression Algorithm for IPCOMP");
MODULE_AUTHOR("James Morris <jmorris@intercode.com.au>");
MODULE_AUTHOR("Ard Biesheuvel <ardb@kernel.org>");
MODULE_AUTHOR("Herbert Xu <herbert@gondor.apana.org.au>");
MODULE_ALIAS_CRYPTO("deflate");
MODULE_ALIAS_CRYPTO("deflate-generic");
Annotation
- Immediate include surface: `crypto/internal/acompress.h`, `crypto/scatterwalk.h`, `linux/init.h`, `linux/kernel.h`, `linux/module.h`, `linux/mutex.h`, `linux/overflow.h`, `linux/percpu.h`.
- Detected declarations: `struct deflate_stream`, `function deflate_free_stream`, `function deflate_compress_one`, `function deflate_compress`, `function deflate_decompress_one`, `function deflate_decompress`, `function deflate_init`, `function deflate_mod_init`, `function deflate_mod_fini`, `module init deflate_mod_init`.
- Atlas domain: Kernel Services / crypto.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.