drivers/block/xen-blkback/blkback.c
Source file repositories/reference/linux-study-clean/drivers/block/xen-blkback/blkback.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/block/xen-blkback/blkback.c- Extension
.c- Size
- 45168 bytes
- Lines
- 1568
- Domain
- Driver Families
- Bucket
- drivers/block
- 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/spinlock.hlinux/kthread.hlinux/list.hlinux/delay.hlinux/freezer.hlinux/bitmap.hxen/events.hxen/page.hxen/xen.hasm/xen/hypervisor.hasm/xen/hypercall.hxen/balloon.hxen/grant_table.hcommon.h
Detected Declarations
function persistent_gnt_timeoutfunction contextfunction put_persistent_gntfunction free_persistent_gntsfunction foreach_grant_safefunction xen_blkbk_unmap_purged_grantsfunction purge_persistent_gntfunction free_reqfunction devicesfunction xen_vbd_resizefunction blkif_notify_workfunction xen_blkif_be_intfunction print_statsfunction xen_blkif_schedulefunction xen_blkbk_free_cachesfunction xen_blkbk_unmap_preparefunction xen_blkbk_unmap_and_respond_callbackfunction drain_completefunction xen_blkbk_unmap_and_respondfunction xen_blkbk_unmapfunction xen_blkbk_mapfunction xen_blkbk_map_segfunction xen_blkbk_parse_indirectfunction dispatch_discard_iofunction dispatch_other_iofunction xen_blk_drain_iofunction __end_block_io_opfunction end_block_io_opfunction blkif_get_x86_32_reqfunction blkif_get_x86_64_reqfunction __do_block_io_opfunction do_block_io_opfunction dispatch_rw_block_iofunction make_responsefunction xen_blkif_initfunction xen_blkif_finimodule init xen_blkif_init
Annotated Snippet
module_init(xen_blkif_init);
static void __exit xen_blkif_fini(void)
{
xen_blkif_xenbus_fini();
xen_blkif_interface_fini();
}
module_exit(xen_blkif_fini);
MODULE_DESCRIPTION("Virtual block device back-end driver");
MODULE_LICENSE("Dual BSD/GPL");
MODULE_ALIAS("xen-backend:vbd");
Annotation
- Immediate include surface: `linux/spinlock.h`, `linux/kthread.h`, `linux/list.h`, `linux/delay.h`, `linux/freezer.h`, `linux/bitmap.h`, `xen/events.h`, `xen/page.h`.
- Detected declarations: `function persistent_gnt_timeout`, `function context`, `function put_persistent_gnt`, `function free_persistent_gnts`, `function foreach_grant_safe`, `function xen_blkbk_unmap_purged_grants`, `function purge_persistent_gnt`, `function free_req`, `function devices`, `function xen_vbd_resize`.
- Atlas domain: Driver Families / drivers/block.
- 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.