drivers/md/md-cluster.c
Source file repositories/reference/linux-study-clean/drivers/md/md-cluster.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/md/md-cluster.c- Extension
.c- Size
- 46793 bytes
- Lines
- 1670
- 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/module.hlinux/kthread.hlinux/dlm.hlinux/sched.hlinux/raid/md_p.hmd.hmd-bitmap.hmd-cluster.h
Detected Declarations
struct dlm_lock_resourcestruct resync_infostruct md_cluster_infostruct cluster_msgenum msg_typefunction sync_astfunction dlm_lock_syncfunction dlm_unlock_syncfunction dlm_lock_sync_interruptiblefunction lockres_freefunction add_resync_infofunction read_resync_infofunction recover_bitmapsfunction recover_prepfunction __recover_slotfunction recover_slotfunction recover_donefunction ack_bastfunction remove_suspend_infofunction process_suspend_infofunction rdev_for_eachfunction process_add_new_diskfunction process_metadata_updatefunction process_remove_diskfunction process_readd_diskfunction process_recvd_msgfunction recv_daemonfunction lock_tokenfunction lock_commfunction reconfig_mutexfunction unlock_commfunction __sendmsgfunction sendmsgfunction gather_all_resync_infofunction joinfunction load_bitmapsfunction resync_bitmapfunction leavefunction slot_numberfunction metadata_update_startfunction metadata_update_finishfunction metadata_update_cancelfunction update_bitmap_sizefunction resize_bitmapsfunction cluster_check_sync_sizefunction update_sizefunction resync_startfunction resync_info_get
Annotated Snippet
module_init(cluster_init);
module_exit(cluster_exit);
MODULE_AUTHOR("SUSE");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Clustering support for MD");
Annotation
- Immediate include surface: `linux/module.h`, `linux/kthread.h`, `linux/dlm.h`, `linux/sched.h`, `linux/raid/md_p.h`, `md.h`, `md-bitmap.h`, `md-cluster.h`.
- Detected declarations: `struct dlm_lock_resource`, `struct resync_info`, `struct md_cluster_info`, `struct cluster_msg`, `enum msg_type`, `function sync_ast`, `function dlm_lock_sync`, `function dlm_unlock_sync`, `function dlm_lock_sync_interruptible`, `function lockres_free`.
- 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.