drivers/md/raid10.c
Source file repositories/reference/linux-study-clean/drivers/md/raid10.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/md/raid10.c- Extension
.c- Size
- 141726 bytes
- Lines
- 5101
- 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/slab.hlinux/delay.hlinux/blkdev.hlinux/module.hlinux/seq_file.hlinux/ratelimit.hlinux/kthread.hlinux/raid/md_p.htrace/events/block.hmd.hraid10.hraid0.hmd-bitmap.hmd-cluster.hraid1-10.c
Detected Declarations
enum geo_typefunction cmd_afterfunction r10bio_pool_allocfunction writefunction r10buf_pool_freefunction put_all_biosfunction free_r10biofunction put_buffunction wake_up_barrierfunction reschedule_retryfunction raid_end_bio_iofunction update_head_posfunction find_bio_diskfunction raid10_end_read_requestfunction close_writefunction one_write_donefunction raid10_end_write_requestfunction __raid10_find_physfunction raid10_find_physfunction raid10_find_virtfunction flush_pending_writesfunction raise_barrierfunction lower_barrierfunction stop_waiting_barrierfunction raid10dfunction wait_barrier_nolockfunction wait_barrierfunction allow_barrierfunction freeze_arrayfunction unfreeze_arrayfunction choose_data_offsetfunction raid10_unplugfunction regular_request_waitfunction raid10_read_requestfunction raid10_write_one_diskfunction wait_blocked_devfunction raid10_write_requestfunction __make_requestfunction raid_end_discard_biofunction raid10_end_discard_requestfunction raid10_handle_discardfunction raid10_make_requestfunction raid10_statusfunction _enoughfunction enoughfunction raid10_errorfunction print_conffunction close_sync
Annotated Snippet
module_init(raid10_init);
module_exit(raid10_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("RAID10 (striped mirror) personality for MD");
MODULE_ALIAS("md-personality-9"); /* RAID10 */
MODULE_ALIAS("md-raid10");
MODULE_ALIAS("md-level-10");
Annotation
- Immediate include surface: `linux/slab.h`, `linux/delay.h`, `linux/blkdev.h`, `linux/module.h`, `linux/seq_file.h`, `linux/ratelimit.h`, `linux/kthread.h`, `linux/raid/md_p.h`.
- Detected declarations: `enum geo_type`, `function cmd_after`, `function r10bio_pool_alloc`, `function write`, `function r10buf_pool_free`, `function put_all_bios`, `function free_r10bio`, `function put_buf`, `function wake_up_barrier`, `function reschedule_retry`.
- 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.