drivers/md/dm-log-userspace-base.c
Source file repositories/reference/linux-study-clean/drivers/md/dm-log-userspace-base.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/md/dm-log-userspace-base.c- Extension
.c- Size
- 22537 bytes
- Lines
- 932
- 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/bio.hlinux/slab.hlinux/jiffies.hlinux/dm-dirty-log.hlinux/device-mapper.hlinux/dm-log-userspace.hlinux/module.hlinux/workqueue.hdm-log-userspace-transfer.h
Detected Declarations
struct dm_dirty_log_flush_entrystruct log_cfunction userspace_do_requestfunction build_constructor_stringfunction do_flushfunction userspace_ctrfunction userspace_dtrfunction userspace_presuspendfunction userspace_postsuspendfunction userspace_resumefunction userspace_get_region_sizefunction userspace_is_cleanfunction userspace_in_syncfunction flush_one_by_onefunction list_for_each_entryfunction flush_by_groupfunction list_for_each_entry_safefunction userspace_flushfunction userspace_mark_regionfunction userspace_clear_regionfunction userspace_get_resync_workfunction userspace_set_region_syncfunction userspace_get_sync_countfunction userspace_statusfunction userspace_is_remote_recoveringfunction userspace_dirty_log_initfunction userspace_dirty_log_exitmodule init userspace_dirty_log_init
Annotated Snippet
module_init(userspace_dirty_log_init);
module_exit(userspace_dirty_log_exit);
MODULE_DESCRIPTION(DM_NAME " userspace dirty log link");
MODULE_AUTHOR("Jonathan Brassow <dm-devel@lists.linux.dev>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/bio.h`, `linux/slab.h`, `linux/jiffies.h`, `linux/dm-dirty-log.h`, `linux/device-mapper.h`, `linux/dm-log-userspace.h`, `linux/module.h`, `linux/workqueue.h`.
- Detected declarations: `struct dm_dirty_log_flush_entry`, `struct log_c`, `function userspace_do_request`, `function build_constructor_string`, `function do_flush`, `function userspace_ctr`, `function userspace_dtr`, `function userspace_presuspend`, `function userspace_postsuspend`, `function userspace_resume`.
- 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.