drivers/firewire/sbp2.c
Source file repositories/reference/linux-study-clean/drivers/firewire/sbp2.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/firewire/sbp2.c- Extension
.c- Size
- 46970 bytes
- Lines
- 1624
- Domain
- Driver Families
- Bucket
- drivers/firewire
- 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/blkdev.hlinux/bug.hlinux/completion.hlinux/delay.hlinux/device.hlinux/dma-mapping.hlinux/firewire.hlinux/firewire-constants.hlinux/init.hlinux/jiffies.hlinux/kernel.hlinux/kref.hlinux/list.hlinux/mod_devicetable.hlinux/module.hlinux/moduleparam.hlinux/scatterlist.hlinux/slab.hlinux/spinlock.hlinux/string.hlinux/stringify.hlinux/workqueue.hasm/byteorder.hscsi/scsi.hscsi/scsi_cmnd.hscsi/scsi_device.hscsi/scsi_host.h
Detected Declarations
struct sbp2_logical_unitstruct sbp2_targetstruct sbp2_statusstruct sbp2_pointerstruct sbp2_orbstruct sbp2_management_orbstruct sbp2_login_responsestruct sbp2_command_orbfunction sbp2_queue_workfunction free_orbfunction sbp2_status_writefunction complete_transactionfunction sbp2_send_orbfunction sbp2_cancel_orbsfunction list_for_each_entry_safefunction complete_management_orbfunction sbp2_send_management_orbfunction sbp2_agent_resetfunction complete_agent_reset_write_no_waitfunction sbp2_agent_reset_no_waitfunction sbp2_allow_blockfunction finishedfunction sbp2_conditionally_unblockfunction sbp2_unblockfunction sbp2_lun2intfunction sbp2_set_busy_timeoutfunction sbp2_loginfunction sbp2_reconnectfunction sbp2_lu_workfnfunction sbp2_add_logical_unitfunction sbp2_get_unit_unique_idfunction sbp2_scan_logical_unit_dirfunction sbp2_scan_unit_dirfunction sbp2_clamp_management_orb_timeoutfunction sbp2_init_workaroundsfunction sbp2_probefunction sbp2_updatefunction sbp2_removefunction list_for_each_entry_safefunction sbp2_unmap_scatterlistfunction sbp2_status_to_sense_datafunction complete_command_orbfunction sbp2_map_scatterlistfunction for_each_sgfunction sbp2_scsi_queuecommandfunction sbp2_scsi_sdev_initfunction sbp2_scsi_sdev_configurefunction sbp2_scsi_abort
Annotated Snippet
module_init(sbp2_init);
module_exit(sbp2_cleanup);
Annotation
- Immediate include surface: `linux/blkdev.h`, `linux/bug.h`, `linux/completion.h`, `linux/delay.h`, `linux/device.h`, `linux/dma-mapping.h`, `linux/firewire.h`, `linux/firewire-constants.h`.
- Detected declarations: `struct sbp2_logical_unit`, `struct sbp2_target`, `struct sbp2_status`, `struct sbp2_pointer`, `struct sbp2_orb`, `struct sbp2_management_orb`, `struct sbp2_login_response`, `struct sbp2_command_orb`, `function sbp2_queue_work`, `function free_orb`.
- Atlas domain: Driver Families / drivers/firewire.
- 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.