drivers/virt/coco/tdx-host/tdx-host.c
Source file repositories/reference/linux-study-clean/drivers/virt/coco/tdx-host/tdx-host.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/virt/coco/tdx-host/tdx-host.c- Extension
.c- Size
- 5207 bytes
- Lines
- 240
- Domain
- Driver Families
- Bucket
- drivers/virt
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/device/faux.hlinux/firmware.hlinux/module.hlinux/mod_devicetable.hlinux/sysfs.hasm/cpu_device_id.hasm/seamldr.hasm/tdx.h
Detected Declarations
function version_showfunction seamldr_version_showfunction num_remaining_updates_showfunction supports_runtime_updatefunction seamldr_group_visiblefunction tdx_fw_preparefunction tdx_fw_writefunction tdx_fw_poll_completefunction tdx_fw_cancelfunction seamldr_deinitfunction seamldr_initfunction tdx_host_probefunction tdx_host_initfunction tdx_host_exitmodule init tdx_host_init
Annotated Snippet
module_init(tdx_host_init);
static void __exit tdx_host_exit(void)
{
faux_device_destroy(fdev);
}
module_exit(tdx_host_exit);
MODULE_DESCRIPTION("TDX Host Services");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/device/faux.h`, `linux/firmware.h`, `linux/module.h`, `linux/mod_devicetable.h`, `linux/sysfs.h`, `asm/cpu_device_id.h`, `asm/seamldr.h`, `asm/tdx.h`.
- Detected declarations: `function version_show`, `function seamldr_version_show`, `function num_remaining_updates_show`, `function supports_runtime_update`, `function seamldr_group_visible`, `function tdx_fw_prepare`, `function tdx_fw_write`, `function tdx_fw_poll_complete`, `function tdx_fw_cancel`, `function seamldr_deinit`.
- Atlas domain: Driver Families / drivers/virt.
- 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.