crypto/jitterentropy-kcapi.c
Source file repositories/reference/linux-study-clean/crypto/jitterentropy-kcapi.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/jitterentropy-kcapi.c- Extension
.c- Size
- 9582 bytes
- Lines
- 315
- 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/sha3.hlinux/fips.hlinux/kernel.hlinux/module.hlinux/mutex.hlinux/slab.hlinux/time.hcrypto/internal/rng.hjitterentropy.h
Detected Declarations
struct jitterentropyfunction jent_kvzfreefunction jent_zfreefunction jent_get_nstimefunction jent_hash_timefunction jent_read_random_blockfunction jent_kcapi_cleanupfunction jent_kcapi_initfunction jent_kcapi_randomfunction jent_kcapi_resetfunction jent_mod_initfunction jent_mod_exitmodule init jent_mod_init
Annotated Snippet
module_init(jent_mod_init);
module_exit(jent_mod_exit);
MODULE_LICENSE("Dual BSD/GPL");
MODULE_AUTHOR("Stephan Mueller <smueller@chronox.de>");
MODULE_DESCRIPTION("Non-physical True Random Number Generator based on CPU Jitter");
MODULE_ALIAS_CRYPTO("jitterentropy_rng");
Annotation
- Immediate include surface: `crypto/sha3.h`, `linux/fips.h`, `linux/kernel.h`, `linux/module.h`, `linux/mutex.h`, `linux/slab.h`, `linux/time.h`, `crypto/internal/rng.h`.
- Detected declarations: `struct jitterentropy`, `function jent_kvzfree`, `function jent_zfree`, `function jent_get_nstime`, `function jent_hash_time`, `function jent_read_random_block`, `function jent_kcapi_cleanup`, `function jent_kcapi_init`, `function jent_kcapi_random`, `function jent_kcapi_reset`.
- 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.