drivers/virt/coco/guest/report.c
Source file repositories/reference/linux-study-clean/drivers/virt/coco/guest/report.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/virt/coco/guest/report.c- Extension
.c- Size
- 14136 bytes
- Lines
- 540
- 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.
- 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
linux/tsm.hlinux/err.hlinux/slab.hlinux/rwsem.hlinux/string.hlinux/module.hlinux/cleanup.hlinux/configfs.h
Detected Declarations
struct tsm_report_stateenum tsm_data_selectfunction try_advance_write_generationfunction tsm_report_privlevel_storefunction tsm_report_privlevel_floor_showfunction tsm_report_service_provider_storefunction tsm_report_service_guid_storefunction tsm_report_service_manifest_version_storefunction tsm_report_inblob_writefunction tsm_report_generation_showfunction tsm_report_provider_showfunction __read_reportfunction read_cached_reportfunction tsm_report_readfunction tsm_report_outblob_readfunction tsm_report_auxblob_readfunction tsm_report_manifestblob_readfunction tsm_report_item_releasefunction tsm_report_is_visiblefunction tsm_report_is_bin_visiblefunction tsm_report_drop_itemfunction tsm_report_registerfunction tsm_report_unregisterfunction tsm_report_initfunction tsm_report_exitmodule init tsm_report_initexport tsm_report_registerexport tsm_report_unregister
Annotated Snippet
module_init(tsm_report_init);
static void __exit tsm_report_exit(void)
{
configfs_unregister_default_group(tsm_report_group);
configfs_unregister_subsystem(&tsm_configfs);
}
module_exit(tsm_report_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Provide Trusted Security Module attestation reports via configfs");
Annotation
- Immediate include surface: `linux/tsm.h`, `linux/err.h`, `linux/slab.h`, `linux/rwsem.h`, `linux/string.h`, `linux/module.h`, `linux/cleanup.h`, `linux/configfs.h`.
- Detected declarations: `struct tsm_report_state`, `enum tsm_data_select`, `function try_advance_write_generation`, `function tsm_report_privlevel_store`, `function tsm_report_privlevel_floor_show`, `function tsm_report_service_provider_store`, `function tsm_report_service_guid_store`, `function tsm_report_service_manifest_version_store`, `function tsm_report_inblob_write`, `function tsm_report_generation_show`.
- Atlas domain: Driver Families / drivers/virt.
- 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.