drivers/crypto/intel/qat/qat_dh895xcc/adf_drv.c
Source file repositories/reference/linux-study-clean/drivers/crypto/intel/qat/qat_dh895xcc/adf_drv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/crypto/intel/qat/qat_dh895xcc/adf_drv.c- Extension
.c- Size
- 6685 bytes
- Lines
- 259
- Domain
- Driver Families
- Bucket
- drivers/crypto
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- 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
linux/kernel.hlinux/module.hlinux/pci.hlinux/init.hlinux/types.hlinux/fs.hlinux/slab.hlinux/errno.hlinux/device.hlinux/dma-mapping.hlinux/platform_device.hlinux/workqueue.hlinux/io.hadf_accel_devices.hadf_common_drv.hadf_cfg.hadf_dbgfs.hadf_dh895xcc_hw_data.h
Detected Declarations
function adf_cleanup_pci_devfunction adf_cleanup_accelfunction adf_probefunction adf_removefunction adf_shutdownfunction adfdrv_initfunction adfdrv_releasemodule init adfdrv_init
Annotated Snippet
static struct pci_driver adf_driver = {
.id_table = adf_pci_tbl,
.name = ADF_DH895XCC_DEVICE_NAME,
.probe = adf_probe,
.remove = adf_remove,
.shutdown = adf_shutdown,
.sriov_configure = adf_sriov_configure,
.err_handler = &adf_err_handler,
};
static int __init adfdrv_init(void)
{
request_module("intel_qat");
if (pci_register_driver(&adf_driver)) {
pr_err("QAT: Driver initialization failed\n");
return -EFAULT;
}
return 0;
}
static void __exit adfdrv_release(void)
{
pci_unregister_driver(&adf_driver);
}
module_init(adfdrv_init);
module_exit(adfdrv_release);
MODULE_LICENSE("Dual BSD/GPL");
MODULE_AUTHOR("Intel");
MODULE_FIRMWARE(ADF_DH895XCC_FW);
MODULE_FIRMWARE(ADF_DH895XCC_MMP);
MODULE_DESCRIPTION("Intel(R) QuickAssist Technology");
MODULE_IMPORT_NS("CRYPTO_QAT");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/pci.h`, `linux/init.h`, `linux/types.h`, `linux/fs.h`, `linux/slab.h`, `linux/errno.h`.
- Detected declarations: `function adf_cleanup_pci_dev`, `function adf_cleanup_accel`, `function adf_probe`, `function adf_remove`, `function adf_shutdown`, `function adfdrv_init`, `function adfdrv_release`, `module init adfdrv_init`.
- Atlas domain: Driver Families / drivers/crypto.
- Implementation status: pattern 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.