crypto/bpf_crypto_skcipher.c
Source file repositories/reference/linux-study-clean/crypto/bpf_crypto_skcipher.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/bpf_crypto_skcipher.c- Extension
.c- Size
- 2253 bytes
- Lines
- 84
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.hlinux/module.hlinux/bpf_crypto.hcrypto/skcipher.h
Detected Declarations
function bpf_crypto_lskcipher_free_tfmfunction bpf_crypto_lskcipher_has_algofunction bpf_crypto_lskcipher_setkeyfunction bpf_crypto_lskcipher_get_flagsfunction bpf_crypto_lskcipher_ivsizefunction bpf_crypto_lskcipher_statesizefunction bpf_crypto_lskcipher_encryptfunction bpf_crypto_lskcipher_decryptfunction bpf_crypto_skcipher_initfunction bpf_crypto_skcipher_exitmodule init bpf_crypto_skcipher_init
Annotated Snippet
module_init(bpf_crypto_skcipher_init);
module_exit(bpf_crypto_skcipher_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Symmetric key cipher support for BPF");
Annotation
- Immediate include surface: `linux/types.h`, `linux/module.h`, `linux/bpf_crypto.h`, `crypto/skcipher.h`.
- Detected declarations: `function bpf_crypto_lskcipher_free_tfm`, `function bpf_crypto_lskcipher_has_algo`, `function bpf_crypto_lskcipher_setkey`, `function bpf_crypto_lskcipher_get_flags`, `function bpf_crypto_lskcipher_ivsize`, `function bpf_crypto_lskcipher_statesize`, `function bpf_crypto_lskcipher_encrypt`, `function bpf_crypto_lskcipher_decrypt`, `function bpf_crypto_skcipher_init`, `function bpf_crypto_skcipher_exit`.
- Atlas domain: Kernel Services / crypto.
- Implementation status: integration 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.