drivers/message/fusion/mptbase.c
Source file repositories/reference/linux-study-clean/drivers/message/fusion/mptbase.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/message/fusion/mptbase.c- Extension
.c- Size
- 241569 bytes
- Lines
- 8527
- Domain
- Driver Families
- Bucket
- drivers/message
- 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.
- 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/errno.hlinux/init.hlinux/seq_file.hlinux/slab.hlinux/types.hlinux/pci.hlinux/kdev_t.hlinux/blkdev.hlinux/delay.hlinux/interrupt.hlinux/dma-mapping.hlinux/kthread.hscsi/scsi_host.hmptbase.hlsi/mpi_log_fc.h
Detected Declarations
function pci_disable_io_accessfunction pci_enable_io_accessfunction mpt_set_debug_levelfunction mpt_get_cb_idxfunction mpt_is_discovery_completefunction mpt_remove_dead_ioc_funcfunction mpt_fault_reset_workfunction turbofunction mpt_replyfunction request_irqfunction mptbase_replyfunction MPT_MAX_PROTOCOL_DRIVERSfunction mpt_deregisterfunction mpt_event_registerfunction notfunction mpt_reset_registerfunction notfunction mpt_device_driver_registerfunction mpt_device_driver_deregisterfunction list_for_each_entryfunction poolfunction mpt_put_msg_framefunction mpt_put_msg_frame_hi_prifunction mpt_free_msg_framefunction mpt_add_sgefunction mpt_add_sge_64bitfunction mpt_add_sge_64bit_1078function mpt_add_chainfunction mpt_add_chain_64bitfunction mpt_send_handshake_requestfunction mpt_host_page_access_controlfunction mpt_host_page_allocfunction mpt_verify_adapterfunction list_for_each_entryfunction mpt_get_product_namefunction mpt_mapresourcesfunction mpt_attachfunction mpt_detachfunction mpt_suspendfunction mpt_resumefunction mpt_signal_resetfunction mpt_do_ioc_recoveryfunction mpt_detect_bound_portsfunction list_for_each_entryfunction mpt_adapter_disablefunction statefunction mpt_adapter_disposefunction MptDisplayIocCapabilities
Annotated Snippet
module_init(fusion_init);
module_exit(fusion_exit);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/errno.h`, `linux/init.h`, `linux/seq_file.h`, `linux/slab.h`, `linux/types.h`, `linux/pci.h`.
- Detected declarations: `function pci_disable_io_access`, `function pci_enable_io_access`, `function mpt_set_debug_level`, `function mpt_get_cb_idx`, `function mpt_is_discovery_complete`, `function mpt_remove_dead_ioc_func`, `function mpt_fault_reset_work`, `function turbo`, `function mpt_reply`, `function request_irq`.
- Atlas domain: Driver Families / drivers/message.
- Implementation status: integration 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.