lib/lz4/lz4defs.h
Source file repositories/reference/linux-study-clean/lib/lz4/lz4defs.h
File Facts
- System
- Linux kernel
- Corpus path
lib/lz4/lz4defs.h- Extension
.h- Size
- 6812 bytes
- Lines
- 248
- Domain
- Kernel Services
- Bucket
- lib
- Inferred role
- Kernel Services: implementation source
- Status
- source 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.
Dependency Surface
linux/unaligned.hlinux/bitops.hlinux/string.hlinux/lz4.hlinux/types.h
Detected Declarations
function LZ4_read16function LZ4_read32function LZ4_read_ARCHfunction LZ4_write16function LZ4_write32function LZ4_readLE16function LZ4_writeLE16function LZ4_copy8function LZ4_wildCopyfunction LZ4_NbCommonBytesfunction LZ4_count
Annotated Snippet
if (!diff) {
pIn += STEPSIZE;
pMatch += STEPSIZE;
continue;
}
pIn += LZ4_NbCommonBytes(diff);
return (unsigned int)(pIn - pStart);
}
#if LZ4_ARCH64
if ((pIn < (pInLimit - 3))
&& (LZ4_read32(pMatch) == LZ4_read32(pIn))) {
pIn += 4;
pMatch += 4;
}
#endif
if ((pIn < (pInLimit - 1))
&& (LZ4_read16(pMatch) == LZ4_read16(pIn))) {
pIn += 2;
pMatch += 2;
}
if ((pIn < pInLimit) && (*pMatch == *pIn))
pIn++;
return (unsigned int)(pIn - pStart);
}
typedef enum { noLimit = 0, limitedOutput = 1 } limitedOutput_directive;
typedef enum { byPtr, byU32, byU16 } tableType_t;
typedef enum { noDict = 0, withPrefix64k, usingExtDict } dict_directive;
typedef enum { noDictIssue = 0, dictSmall } dictIssue_directive;
typedef enum { endOnOutputSize = 0, endOnInputSize = 1 } endCondition_directive;
typedef enum { decode_full_block = 0, partial_decode = 1 } earlyEnd_directive;
#define LZ4_STATIC_ASSERT(c) BUILD_BUG_ON(!(c))
#endif
Annotation
- Immediate include surface: `linux/unaligned.h`, `linux/bitops.h`, `linux/string.h`, `linux/lz4.h`, `linux/types.h`.
- Detected declarations: `function LZ4_read16`, `function LZ4_read32`, `function LZ4_read_ARCH`, `function LZ4_write16`, `function LZ4_write32`, `function LZ4_readLE16`, `function LZ4_writeLE16`, `function LZ4_copy8`, `function LZ4_wildCopy`, `function LZ4_NbCommonBytes`.
- Atlas domain: Kernel Services / lib.
- 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.