crypto/crypto_user.c
Source file repositories/reference/linux-study-clean/crypto/crypto_user.c
File Facts
- System
- Linux kernel
- Corpus path
crypto/crypto_user.c- Extension
.c- Size
- 11884 bytes
- Lines
- 505
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/crypto.hlinux/cryptouser.hlinux/sched.hlinux/security.hnet/netlink.hnet/net_namespace.hnet/sock.hcrypto/internal/skcipher.hcrypto/internal/rng.hcrypto/akcipher.hcrypto/kpp.hinternal.h
Detected Declarations
struct crypto_dump_infofunction list_for_each_entryfunction crypto_report_cipherfunction crypto_report_onefunction crypto_report_algfunction crypto_reportfunction crypto_dump_reportfunction crypto_dump_report_donefunction crypto_update_algfunction crypto_del_algfunction crypto_add_algfunction crypto_del_rngfunction crypto_reportstatfunction crypto_user_rcv_msgfunction crypto_netlink_rcvfunction crypto_netlink_initfunction crypto_netlink_exitfunction crypto_user_initfunction crypto_user_exitmodule init crypto_user_init
Annotated Snippet
module_init(crypto_user_init);
module_exit(crypto_user_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Steffen Klassert <steffen.klassert@secunet.com>");
MODULE_DESCRIPTION("Crypto userspace configuration API");
MODULE_ALIAS("net-pf-16-proto-21");
Annotation
- Immediate include surface: `linux/module.h`, `linux/crypto.h`, `linux/cryptouser.h`, `linux/sched.h`, `linux/security.h`, `net/netlink.h`, `net/net_namespace.h`, `net/sock.h`.
- Detected declarations: `struct crypto_dump_info`, `function list_for_each_entry`, `function crypto_report_cipher`, `function crypto_report_one`, `function crypto_report_alg`, `function crypto_report`, `function crypto_dump_report`, `function crypto_dump_report_done`, `function crypto_update_alg`, `function crypto_del_alg`.
- 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.