drivers/xen/xen-scsiback.c
Source file repositories/reference/linux-study-clean/drivers/xen/xen-scsiback.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/xen/xen-scsiback.c- Extension
.c- Size
- 48475 bytes
- Lines
- 1892
- Domain
- Driver Families
- Bucket
- drivers/xen
- 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/module.hlinux/utsname.hlinux/interrupt.hlinux/slab.hlinux/wait.hlinux/sched.hlinux/list.hlinux/gfp.hlinux/delay.hlinux/spinlock.hlinux/configfs.hgenerated/utsrelease.hscsi/scsi_host.htarget/target_core_base.htarget/target_core_fabric.hasm/hypervisor.hxen/xen.hxen/balloon.hxen/events.hxen/xenbus.hxen/grant_table.hxen/page.hxen/interface/grant_table.hxen/interface/io/vscsiif.h
Detected Declarations
struct ids_tuplestruct v2p_entrystruct vscsibk_infostruct vscsibk_pendstruct scsiback_nexusstruct scsiback_tportstruct scsiback_tpgfunction scsiback_getfunction scsiback_putfunction vaddr_pagefunction vaddrfunction scsiback_print_statusfunction scsiback_fast_flush_areafunction scsiback_free_translation_entryfunction scsiback_resultfunction scsiback_send_responsefunction scsiback_do_resp_with_sensefunction scsiback_cmd_donefunction scsiback_cmd_execfunction scsiback_gnttab_data_map_batchfunction scsiback_gnttab_data_map_listfunction scsiback_gnttab_data_mapfunction for_each_sgfunction scsiback_disconnectfunction scsiback_device_actionfunction scsiback_do_cmd_fnfunction scsiback_irq_fnfunction scsiback_init_sringfunction scsiback_mapfunction scsiback_add_translation_entryfunction hlist_for_each_entryfunction scsiback_del_translation_entryfunction scsiback_do_add_lunfunction scsiback_do_del_lunfunction scsiback_do_1lun_hotplugfunction scsiback_do_lun_hotplugfunction scsiback_frontend_changedfunction scsiback_release_translation_entryfunction list_for_each_entry_safefunction scsiback_removefunction scsiback_probefunction scsiback_get_tagfunction scsiback_make_tportfunction scsiback_drop_tportfunction scsiback_check_stop_freefunction scsiback_release_cmdfunction scsiback_write_pendingfunction scsiback_queue_data_in
Annotated Snippet
module_init(scsiback_init);
module_exit(scsiback_exit);
MODULE_DESCRIPTION("Xen SCSI backend driver");
MODULE_LICENSE("Dual BSD/GPL");
MODULE_ALIAS("xen-backend:vscsi");
MODULE_AUTHOR("Juergen Gross <jgross@suse.com>");
Annotation
- Immediate include surface: `linux/module.h`, `linux/utsname.h`, `linux/interrupt.h`, `linux/slab.h`, `linux/wait.h`, `linux/sched.h`, `linux/list.h`, `linux/gfp.h`.
- Detected declarations: `struct ids_tuple`, `struct v2p_entry`, `struct vscsibk_info`, `struct vscsibk_pend`, `struct scsiback_nexus`, `struct scsiback_tport`, `struct scsiback_tpg`, `function scsiback_get`, `function scsiback_put`, `function vaddr_page`.
- Atlas domain: Driver Families / drivers/xen.
- 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.