drivers/scsi/mvumi.c
Source file repositories/reference/linux-study-clean/drivers/scsi/mvumi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/mvumi.c- Extension
.c- Size
- 70030 bytes
- Lines
- 2633
- Domain
- Driver Families
- Bucket
- drivers/scsi
- 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/kernel.hlinux/module.hlinux/moduleparam.hlinux/init.hlinux/device.hlinux/pci.hlinux/list.hlinux/spinlock.hlinux/interrupt.hlinux/delay.hlinux/ktime.hlinux/blkdev.hlinux/io.hscsi/scsi.hscsi/scsi_cmnd.hscsi/scsi_device.hscsi/scsi_host.hscsi/scsi_transport.hscsi/scsi_eh.hlinux/uaccess.hlinux/kthread.hmvumi.h
Detected Declarations
function tag_initfunction tag_get_onefunction tag_release_onefunction tag_is_emptyfunction mvumi_unmap_pci_addrfunction mvumi_map_pci_addrfunction mvumi_release_mem_resourcefunction list_for_each_entry_safefunction mvumi_make_sglfunction mvumi_internal_cmd_sglfunction mvumi_delete_internal_cmdfunction mvumi_return_cmdfunction mvumi_free_cmdsfunction mvumi_alloc_cmdsfunction mvumi_check_ib_list_9143function mvumi_check_ib_list_9580function mvumi_get_ib_list_entryfunction mvumi_send_ib_list_entryfunction mvumi_check_ob_framefunction mvumi_check_ob_list_9143function mvumi_check_ob_list_9580function mvumi_receive_ob_list_entryfunction mvumi_resetfunction mvumi_wait_for_outstandingfunction mvumi_wait_for_fwfunction mvumi_backup_bar_addrfunction mvumi_restore_bar_addrfunction mvumi_pci_set_masterfunction mvumi_reset_host_9580function mvumi_reset_host_9143function mvumi_host_resetfunction mvumi_issue_blocked_cmdfunction mvumi_release_fwfunction mvumi_flush_cachefunction mvumi_calculate_checksumfunction mvumi_hs_build_pagefunction mvumi_init_datafunction mvumi_hs_process_pagefunction mvumi_handshakefunction mvumi_handshake_eventfunction mvumi_check_handshakefunction mvumi_startfunction mvumi_complete_cmdfunction mvumi_complete_internal_cmdfunction mvumi_show_eventfunction mvumi_handle_hotplugfunction mvumi_inquiryfunction mvumi_detach_devices
Annotated Snippet
static struct pci_driver mvumi_pci_driver = {
.name = MV_DRIVER_NAME,
.id_table = mvumi_pci_table,
.probe = mvumi_probe_one,
.remove = mvumi_detach_one,
.shutdown = mvumi_shutdown,
.driver.pm = &mvumi_pm_ops,
};
module_pci_driver(mvumi_pci_driver);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/moduleparam.h`, `linux/init.h`, `linux/device.h`, `linux/pci.h`, `linux/list.h`, `linux/spinlock.h`.
- Detected declarations: `function tag_init`, `function tag_get_one`, `function tag_release_one`, `function tag_is_empty`, `function mvumi_unmap_pci_addr`, `function mvumi_map_pci_addr`, `function mvumi_release_mem_resource`, `function list_for_each_entry_safe`, `function mvumi_make_sgl`, `function mvumi_internal_cmd_sgl`.
- Atlas domain: Driver Families / drivers/scsi.
- 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.