block/mq-deadline.c
Source file repositories/reference/linux-study-clean/block/mq-deadline.c
File Facts
- System
- Linux kernel
- Corpus path
block/mq-deadline.c- Extension
.c- Size
- 28355 bytes
- Lines
- 1034
- Domain
- Representative Device Path
- Bucket
- PCIe NVMe Storage Path
- Inferred role
- Representative Device Path: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Part of the selected hardware vertical slice: PCI discovery, driver binding, NVMe queues, block requests, DMA, interrupts, and completion.
- Part of the selected hardware vertical slice: PCI discovery, driver binding, NVMe queues, block requests, DMA, interrupts, and completion.
- 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/kernel.hlinux/fs.hlinux/blkdev.hlinux/bio.hlinux/module.hlinux/slab.hlinux/init.hlinux/compiler.hlinux/rbtree.hlinux/sbitmap.htrace/events/block.helevator.hblk.hblk-mq.hblk-mq-debugfs.hblk-mq-sched.h
Detected Declarations
struct io_stats_per_priostruct dd_per_priostruct deadline_dataenum dd_data_direnum dd_priofunction deadline_rb_rootfunction dd_rq_ioclassfunction blk_rq_posfunction deadline_add_rq_rbfunction deadline_del_rq_rbfunction deadline_remove_requestfunction dd_request_mergedfunction dd_merged_requestsfunction positionfunction deadline_move_requestfunction dd_queuedfunction deadline_check_fifofunction deadline_fifo_requestfunction deadline_next_requestfunction started_afterfunction directionfunction blk_mq_run_hw_queuefunction dd_limit_depthfunction dd_depth_updatedfunction dd_exit_schedfunction datafunction dd_request_mergefunction dd_bio_mergefunction dd_insert_requestfunction blk_mq_insert_requestfunction dd_prepare_requestfunction blk_mq_free_requestfunction dd_has_work_for_priofunction dd_has_workfunction deadline_batching_showfunction deadline_starved_showfunction dd_queued_showfunction dd_owned_by_driverfunction dd_owned_by_driver_showfunction deadline_dispatch_stopfunction deadline_initfunction deadline_exitmodule init deadline_init
Annotated Snippet
module_init(deadline_init);
module_exit(deadline_exit);
MODULE_AUTHOR("Jens Axboe, Damien Le Moal and Bart Van Assche");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("MQ deadline IO scheduler");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/fs.h`, `linux/blkdev.h`, `linux/bio.h`, `linux/module.h`, `linux/slab.h`, `linux/init.h`, `linux/compiler.h`.
- Detected declarations: `struct io_stats_per_prio`, `struct dd_per_prio`, `struct deadline_data`, `enum dd_data_dir`, `enum dd_prio`, `function deadline_rb_root`, `function dd_rq_ioclass`, `function blk_rq_pos`, `function deadline_add_rq_rb`, `function deadline_del_rq_rb`.
- Atlas domain: Representative Device Path / PCIe NVMe Storage Path.
- 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.