drivers/memstick/host/jmb38x_ms.c
Source file repositories/reference/linux-study-clean/drivers/memstick/host/jmb38x_ms.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/memstick/host/jmb38x_ms.c- Extension
.c- Size
- 25613 bytes
- Lines
- 1030
- Domain
- Driver Families
- Bucket
- drivers/memstick
- 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.
- 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/spinlock.hlinux/interrupt.hlinux/pci.hlinux/dma-mapping.hlinux/delay.hlinux/highmem.hlinux/memstick.hlinux/slab.hlinux/module.h
Detected Declarations
struct jmb38x_ms_hoststruct jmb38x_msfunction jmb38x_ms_read_datafunction jmb38x_ms_read_reg_datafunction jmb38x_ms_write_datafunction jmb38x_ms_write_reg_datafunction jmb38x_ms_transfer_datafunction jmb38x_ms_issue_cmdfunction jmb38x_ms_complete_cmdfunction jmb38x_ms_isrfunction jmb38x_ms_abortfunction jmb38x_ms_req_taskletfunction jmb38x_ms_dummy_submitfunction jmb38x_ms_submit_reqfunction jmb38x_ms_resetfunction jmb38x_ms_set_paramfunction jmb38x_ms_pmosfunction jmb38x_ms_suspendfunction jmb38x_ms_resumefunction jmb38x_ms_count_slotsfunction jmb38x_ms_free_hostfunction jmb38x_ms_probefunction jmb38x_ms_remove
Annotated Snippet
static struct pci_driver jmb38x_ms_driver = {
.name = DRIVER_NAME,
.id_table = jmb38x_ms_id_tbl,
.probe = jmb38x_ms_probe,
.remove = jmb38x_ms_remove,
.driver.pm = &jmb38x_ms_pm_ops,
};
module_pci_driver(jmb38x_ms_driver);
MODULE_AUTHOR("Alex Dubov");
MODULE_DESCRIPTION("JMicron jmb38x MemoryStick driver");
MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, jmb38x_ms_id_tbl);
Annotation
- Immediate include surface: `linux/spinlock.h`, `linux/interrupt.h`, `linux/pci.h`, `linux/dma-mapping.h`, `linux/delay.h`, `linux/highmem.h`, `linux/memstick.h`, `linux/slab.h`.
- Detected declarations: `struct jmb38x_ms_host`, `struct jmb38x_ms`, `function jmb38x_ms_read_data`, `function jmb38x_ms_read_reg_data`, `function jmb38x_ms_write_data`, `function jmb38x_ms_write_reg_data`, `function jmb38x_ms_transfer_data`, `function jmb38x_ms_issue_cmd`, `function jmb38x_ms_complete_cmd`, `function jmb38x_ms_isr`.
- Atlas domain: Driver Families / drivers/memstick.
- 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.