drivers/crypto/nx/nx.c
Source file repositories/reference/linux-study-clean/drivers/crypto/nx/nx.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/crypto/nx/nx.c- Extension
.c- Size
- 23254 bytes
- Lines
- 831
- Domain
- Driver Families
- Bucket
- drivers/crypto
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- 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/aes.hcrypto/internal/aead.hcrypto/internal/hash.hcrypto/internal/skcipher.hcrypto/sha2.hcrypto/scatterwalk.hlinux/module.hlinux/moduleparam.hlinux/types.hlinux/mm.hlinux/scatterlist.hlinux/device.hlinux/of.hasm/hvcall.hasm/vio.hnx_csbcpb.hnx.h
Detected Declarations
function Copyrightfunction trim_sg_listfunction nx_build_sg_listsfunction nx_ctx_initfunction nx_of_update_statusfunction nx_of_update_sglenfunction nx_of_update_mscfunction nx_of_initfunction nx_check_propfunction nx_check_propsfunction nx_register_skcipherfunction nx_register_aeadfunction nx_register_shashfunction nx_unregister_skcipherfunction nx_unregister_aeadfunction nx_unregister_shashfunction nx_probefunction nx_crypto_ctx_initfunction nx_crypto_ctx_aes_ccm_initfunction nx_crypto_ctx_aes_gcm_initfunction nx_crypto_ctx_aes_ctr_initfunction nx_crypto_ctx_aes_cbc_initfunction nx_crypto_ctx_aes_ecb_initfunction nx_crypto_ctx_sha_initfunction nx_crypto_ctx_aes_xcbc_initfunction nx_crypto_ctx_exitfunction nx_crypto_ctx_skcipher_exitfunction nx_crypto_ctx_aead_exitfunction nx_crypto_ctx_shash_exitfunction nx_probefunction nx_removefunction nx_initfunction nx_finimodule init nx_init
Annotated Snippet
module_init(nx_init);
module_exit(nx_fini);
MODULE_AUTHOR("Kent Yoder <yoder1@us.ibm.com>");
MODULE_DESCRIPTION(NX_STRING);
MODULE_LICENSE("GPL");
MODULE_VERSION(NX_VERSION);
Annotation
- Immediate include surface: `crypto/aes.h`, `crypto/internal/aead.h`, `crypto/internal/hash.h`, `crypto/internal/skcipher.h`, `crypto/sha2.h`, `crypto/scatterwalk.h`, `linux/module.h`, `linux/moduleparam.h`.
- Detected declarations: `function Copyright`, `function trim_sg_list`, `function nx_build_sg_lists`, `function nx_ctx_init`, `function nx_of_update_status`, `function nx_of_update_sglen`, `function nx_of_update_msc`, `function nx_of_init`, `function nx_check_prop`, `function nx_check_props`.
- Atlas domain: Driver Families / drivers/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.