arch/s390/crypto/phmac_s390.c
Source file repositories/reference/linux-study-clean/arch/s390/crypto/phmac_s390.c
File Facts
- System
- Linux kernel
- Corpus path
arch/s390/crypto/phmac_s390.c- Extension
.c- Size
- 27576 bytes
- Lines
- 1075
- Domain
- Architecture Layer
- Bucket
- arch/s390
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- 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
asm/cpacf.hasm/pkey.hcrypto/engine.hcrypto/hash.hcrypto/internal/hash.hcrypto/sha2.hlinux/atomic.hlinux/cpufeature.hlinux/delay.hlinux/miscdevice.hlinux/module.hlinux/spinlock.h
Detected Declarations
struct hash_walk_helperstruct phmac_protkeystruct phmac_tfm_ctxstruct kmac_sha2_ctxstruct phmac_req_ctxstruct hmac_clrkey_tokenstruct sha256_paramblockstruct sha512_paramblockenum async_opfunction hwh_preparefunction hwh_advancefunction hash_keyfunction make_clrkey_tokenfunction phmac_tfm_ctx_setkeyfunction convert_keyfunction convert_keyfunction kmac_sha2_set_imblfunction phmac_kmac_updatefunction phmac_kmac_finalfunction phmac_initfunction setkeyfunction phmac_updatefunction phmac_finalfunction phmac_finupfunction phmac_digestfunction phmac_setkeyfunction phmac_exportfunction phmac_importfunction phmac_init_tfmfunction phmac_exit_tfmfunction phmac_do_one_requestfunction s390_phmac_exitfunction s390_phmac_initmodule init s390_phmac_init
Annotated Snippet
module_init(s390_phmac_init);
module_exit(s390_phmac_exit);
MODULE_ALIAS_CRYPTO("phmac(sha224)");
MODULE_ALIAS_CRYPTO("phmac(sha256)");
MODULE_ALIAS_CRYPTO("phmac(sha384)");
MODULE_ALIAS_CRYPTO("phmac(sha512)");
MODULE_DESCRIPTION("S390 HMAC driver for protected keys");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `asm/cpacf.h`, `asm/pkey.h`, `crypto/engine.h`, `crypto/hash.h`, `crypto/internal/hash.h`, `crypto/sha2.h`, `linux/atomic.h`, `linux/cpufeature.h`.
- Detected declarations: `struct hash_walk_helper`, `struct phmac_protkey`, `struct phmac_tfm_ctx`, `struct kmac_sha2_ctx`, `struct phmac_req_ctx`, `struct hmac_clrkey_token`, `struct sha256_paramblock`, `struct sha512_paramblock`, `enum async_op`, `function hwh_prepare`.
- Atlas domain: Architecture Layer / arch/s390.
- 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.