drivers/target/sbp/sbp_target.c
Source file repositories/reference/linux-study-clean/drivers/target/sbp/sbp_target.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/target/sbp/sbp_target.c- Extension
.c- Size
- 58976 bytes
- Lines
- 2300
- Domain
- Driver Families
- Bucket
- drivers/target
- 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.
- 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/init.hlinux/types.hlinux/string.hlinux/configfs.hlinux/ctype.hlinux/delay.hlinux/firewire.hlinux/firewire-constants.hscsi/scsi_proto.hscsi/scsi_tcq.htarget/target_core_base.htarget/target_core_backend.htarget/target_core_fabric.hlinux/unaligned.hsbp_target.h
Detected Declarations
function read_peer_guidfunction sbp_login_count_all_by_lunfunction list_for_each_entryfunction list_for_each_entryfunction sbp_get_lun_from_tpgfunction sbp_session_releasefunction sbp_login_releasefunction sbp_management_request_loginfunction sbp_login_count_all_by_lunfunction sbp_management_request_query_loginsfunction sbp_management_request_reconnectfunction sbp_management_request_logoutfunction session_check_for_resetfunction session_reconnect_expiredfunction list_for_each_entry_safefunction session_maintenance_workfunction tgt_agent_rw_agent_statefunction tgt_agent_rw_agent_resetfunction tgt_agent_rw_orb_pointerfunction tgt_agent_rw_doorbellfunction tgt_agent_rw_unsolicited_status_enablefunction tgt_agent_rwfunction tgt_agent_process_workfunction tgt_agent_check_activefunction tgt_agent_fetch_workfunction sbp_target_agent_unregisterfunction sbp_run_transactionfunction sbp_run_request_transactionfunction sbp_fetch_commandfunction sbp_fetch_page_tablefunction sbp_calc_data_length_directionfunction sbp_handle_commandfunction sbp_rw_datafunction sbp_send_statusfunction sbp_sense_manglefunction sbp_send_sensefunction sbp_free_requestfunction sbp_mgt_agent_processfunction sbp_mgt_agent_rwfunction sbp_management_agent_unregisterfunction sbp_check_truefunction sbp_get_tagfunction sbp_release_cmdfunction sbp_write_pendingfunction sbp_queue_data_infunction commandfunction sbp_queue_tm_rspfunction sbp_check_stop_free
Annotated Snippet
module_init(sbp_init);
module_exit(sbp_exit);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/init.h`, `linux/types.h`, `linux/string.h`, `linux/configfs.h`, `linux/ctype.h`, `linux/delay.h`.
- Detected declarations: `function read_peer_guid`, `function sbp_login_count_all_by_lun`, `function list_for_each_entry`, `function list_for_each_entry`, `function sbp_get_lun_from_tpg`, `function sbp_session_release`, `function sbp_login_release`, `function sbp_management_request_login`, `function sbp_login_count_all_by_lun`, `function sbp_management_request_query_logins`.
- Atlas domain: Driver Families / drivers/target.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.