drivers/target/target_core_iblock.c
Source file repositories/reference/linux-study-clean/drivers/target/target_core_iblock.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/target/target_core_iblock.c- Extension
.c- Size
- 30514 bytes
- Lines
- 1218
- 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/string.hlinux/parser.hlinux/timer.hlinux/fs.hlinux/blkdev.hlinux/blk-integrity.hlinux/slab.hlinux/spinlock.hlinux/bio.hlinux/file.hlinux/module.hlinux/scatterlist.hlinux/pr.hscsi/scsi_proto.hscsi/scsi_common.hlinux/unaligned.htarget/target_core_base.htarget/target_core_backend.htarget_core_iblock.htarget_core_pr.h
Detected Declarations
function iblock_attach_hbafunction iblock_detach_hbafunction iblock_configure_unmapfunction iblock_configure_devicefunction iblock_dev_call_rcufunction iblock_free_devicefunction iblock_destroy_devicefunction iblock_unplug_devicefunction iblock_get_blocksfunction iblock_complete_cmdfunction iblock_bio_donefunction iblock_submit_biosfunction iblock_end_io_flushfunction iblock_execute_sync_cachefunction iblock_execute_unmapfunction iblock_execute_zero_outfunction iblock_execute_write_samefunction iblock_set_configfs_dev_paramsfunction iblock_show_configfs_dev_paramsfunction iblock_alloc_bipfunction iblock_execute_rwfunction for_each_sgfunction iblock_execute_pr_outfunction iblock_pr_report_capsfunction iblock_pr_read_keysfunction iblock_pr_read_reservationfunction iblock_execute_pr_infunction iblock_get_alignment_offset_lbasfunction iblock_get_lbppbefunction iblock_get_io_minfunction iblock_get_io_optfunction iblock_parse_cdbfunction iblock_get_write_cachefunction iblock_module_initfunction iblock_module_exitmodule init iblock_module_init
Annotated Snippet
module_init(iblock_module_init);
module_exit(iblock_module_exit);
Annotation
- Immediate include surface: `linux/string.h`, `linux/parser.h`, `linux/timer.h`, `linux/fs.h`, `linux/blkdev.h`, `linux/blk-integrity.h`, `linux/slab.h`, `linux/spinlock.h`.
- Detected declarations: `function iblock_attach_hba`, `function iblock_detach_hba`, `function iblock_configure_unmap`, `function iblock_configure_device`, `function iblock_dev_call_rcu`, `function iblock_free_device`, `function iblock_destroy_device`, `function iblock_unplug_device`, `function iblock_get_blocks`, `function iblock_complete_cmd`.
- 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.