drivers/char/tpm/tpm-interface.c
Source file repositories/reference/linux-study-clean/drivers/char/tpm/tpm-interface.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/char/tpm/tpm-interface.c- Extension
.c- Size
- 13312 bytes
- Lines
- 577
- Domain
- Driver Families
- Bucket
- drivers/char
- 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/poll.hlinux/slab.hlinux/mutex.hlinux/spinlock.hlinux/suspend.hlinux/freezer.hlinux/tpm_eventlog.htpm.h
Detected Declarations
function tpm_calc_ordinal_durationfunction tpm_chip_cancelfunction tpm_chip_statusfunction tpm_chip_req_canceledfunction tpm_transmit_completedfunction tpm_try_transmitfunction sendfunction tpm_try_transmitfunction tpm_transmit_cmdfunction tpm_get_timeoutsfunction errorsfunction tpm_pcr_readfunction tpm_pcr_extendfunction tpm_auto_startupfunction tpm_pm_suspendfunction tpm_pm_resumefunction tpm_get_randomfunction tpm_initfunction tpm_exitmodule init tpm_initexport tpm_calc_ordinal_durationexport tpm_transmit_cmdexport tpm_get_timeoutsexport tpm_is_tpm2export tpm_pcr_readexport tpm_pcr_extendexport tpm_pm_suspendexport tpm_pm_resumeexport tpm_get_random
Annotated Snippet
subsys_initcall(tpm_init);
module_exit(tpm_exit);
MODULE_AUTHOR("Leendert van Doorn <leendert@watson.ibm.com>");
MODULE_DESCRIPTION("TPM Driver");
MODULE_VERSION("2.0");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/poll.h`, `linux/slab.h`, `linux/mutex.h`, `linux/spinlock.h`, `linux/suspend.h`, `linux/freezer.h`, `linux/tpm_eventlog.h`, `tpm.h`.
- Detected declarations: `function tpm_calc_ordinal_duration`, `function tpm_chip_cancel`, `function tpm_chip_status`, `function tpm_chip_req_canceled`, `function tpm_transmit_completed`, `function tpm_try_transmit`, `function send`, `function tpm_try_transmit`, `function tpm_transmit_cmd`, `function tpm_get_timeouts`.
- Atlas domain: Driver Families / drivers/char.
- 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.