fs/cramfs/uncompress.c
Source file repositories/reference/linux-study-clean/fs/cramfs/uncompress.c
File Facts
- System
- Linux kernel
- Corpus path
fs/cramfs/uncompress.c- Extension
.c- Size
- 1807 bytes
- Lines
- 81
- Domain
- Core OS
- Bucket
- VFS And Filesystem Core
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
Dependency Surface
linux/kernel.hlinux/errno.hlinux/vmalloc.hlinux/zlib.hinternal.h
Detected Declarations
function cramfs_uncompress_blockfunction cramfs_uncompress_initfunction cramfs_uncompress_exit
Annotated Snippet
if (!stream.workspace) {
initialized = 0;
return -ENOMEM;
}
stream.next_in = NULL;
stream.avail_in = 0;
zlib_inflateInit(&stream);
}
return 0;
}
void cramfs_uncompress_exit(void)
{
if (!--initialized) {
zlib_inflateEnd(&stream);
vfree(stream.workspace);
}
}
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/errno.h`, `linux/vmalloc.h`, `linux/zlib.h`, `internal.h`.
- Detected declarations: `function cramfs_uncompress_block`, `function cramfs_uncompress_init`, `function cramfs_uncompress_exit`.
- Atlas domain: Core OS / VFS And Filesystem Core.
- Implementation status: source implementation candidate.
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.