drivers/misc/tifm_7xx1.c
Source file repositories/reference/linux-study-clean/drivers/misc/tifm_7xx1.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/misc/tifm_7xx1.c- Extension
.c- Size
- 10967 bytes
- Lines
- 428
- Domain
- Driver Families
- Bucket
- drivers/misc
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/tifm.hlinux/dma-mapping.hlinux/module.h
Detected Declarations
function Copyrightfunction tifm_7xx1_isrfunction tifm_7xx1_toggle_sock_powerfunction tifm_7xx1_sock_power_offfunction tifm_7xx1_sock_addrfunction tifm_7xx1_switch_mediafunction tifm_7xx1_suspendfunction tifm_7xx1_resumefunction tifm_7xx1_dummy_has_ms_piffunction tifm_7xx1_has_ms_piffunction tifm_7xx1_probefunction tifm_7xx1_remove
Annotated Snippet
static struct pci_driver tifm_7xx1_driver = {
.name = DRIVER_NAME,
.id_table = tifm_7xx1_pci_tbl,
.probe = tifm_7xx1_probe,
.remove = tifm_7xx1_remove,
.driver.pm = &tifm_7xx1_pm_ops,
};
module_pci_driver(tifm_7xx1_driver);
MODULE_AUTHOR("Alex Dubov");
MODULE_DESCRIPTION("TI FlashMedia host driver");
MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, tifm_7xx1_pci_tbl);
MODULE_VERSION(DRIVER_VERSION);
Annotation
- Immediate include surface: `linux/tifm.h`, `linux/dma-mapping.h`, `linux/module.h`.
- Detected declarations: `function Copyright`, `function tifm_7xx1_isr`, `function tifm_7xx1_toggle_sock_power`, `function tifm_7xx1_sock_power_off`, `function tifm_7xx1_sock_addr`, `function tifm_7xx1_switch_media`, `function tifm_7xx1_suspend`, `function tifm_7xx1_resume`, `function tifm_7xx1_dummy_has_ms_pif`, `function tifm_7xx1_has_ms_pif`.
- Atlas domain: Driver Families / drivers/misc.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.