drivers/md/dm-clone-target.c
Source file repositories/reference/linux-study-clean/drivers/md/dm-clone-target.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/md/dm-clone-target.c- Extension
.c- Size
- 54943 bytes
- Lines
- 2209
- Domain
- Driver Families
- Bucket
- drivers/md
- 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/mm.hlinux/bio.hlinux/err.hlinux/hash.hlinux/list.hlinux/log2.hlinux/init.hlinux/slab.hlinux/wait.hlinux/dm-io.hlinux/mutex.hlinux/atomic.hlinux/bitops.hlinux/blkdev.hlinux/kdev_t.hlinux/kernel.hlinux/module.hlinux/jiffies.hlinux/mempool.hlinux/spinlock.hlinux/blk_types.hlinux/dm-kcopyd.hlinux/workqueue.hlinux/backing-dev.hlinux/device-mapper.hdm.hdm-clone-metadata.h
Detected Declarations
struct hash_table_bucketstruct clonestruct dm_clone_region_hydrationstruct hash_table_bucketstruct batch_infoenum clone_metadata_modefunction get_clone_modefunction __set_clone_modefunction __abort_transactionfunction __reload_in_core_bitsetfunction __metadata_operation_failedfunction wakeup_hydration_waitersfunction wake_workerfunction remap_to_sourcefunction remap_to_destfunction bio_triggers_commitfunction region_to_sectorfunction bio_to_regionfunction bio_region_rangefunction is_overwrite_biofunction fail_biosfunction submit_biosfunction issue_biofunction remap_and_issuefunction issue_deferred_biosfunction complete_overwrite_biofunction complete_overwrite_biofunction trim_biofunction complete_discard_biofunction process_discard_biofunction hash_table_initfunction hash_table_exitfunction hlist_for_each_entryfunction __insert_region_hydrationfunction __find_or_insert_region_hydrationfunction free_hydrationfunction hydration_initfunction hydration_update_metadatafunction hydration_completefunction hydration_kcopyd_callbackfunction hydration_copyfunction overwrite_endiofunction hydration_overwritefunction hydrate_bio_regionfunction __batch_hydrationfunction __start_next_hydrationfunction do_hydrationfunction test_bit
Annotated Snippet
module_init(dm_clone_init);
module_exit(dm_clone_exit);
MODULE_DESCRIPTION(DM_NAME " clone target");
MODULE_AUTHOR("Nikos Tsironis <ntsironis@arrikto.com>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/mm.h`, `linux/bio.h`, `linux/err.h`, `linux/hash.h`, `linux/list.h`, `linux/log2.h`, `linux/init.h`, `linux/slab.h`.
- Detected declarations: `struct hash_table_bucket`, `struct clone`, `struct dm_clone_region_hydration`, `struct hash_table_bucket`, `struct batch_info`, `enum clone_metadata_mode`, `function get_clone_mode`, `function __set_clone_mode`, `function __abort_transaction`, `function __reload_in_core_bitset`.
- Atlas domain: Driver Families / drivers/md.
- 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.