block/bfq-iosched.c
Source file repositories/reference/linux-study-clean/block/bfq-iosched.c
File Facts
- System
- Linux kernel
- Corpus path
block/bfq-iosched.c- Extension
.c- Size
- 270457 bytes
- Lines
- 7683
- 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/module.hlinux/slab.hlinux/blkdev.hlinux/cgroup.hlinux/ktime.hlinux/rbtree.hlinux/ioprio.hlinux/sbitmap.hlinux/delay.hlinux/backing-dev.htrace/events/block.helevator.hblk.hblk-mq.hblk-mq-sched.hbfq-iosched.hblk-wbt.h
Detected Declarations
function bic_set_bfqqfunction bfq_schedule_dispatchfunction bfqq_request_over_limitfunction bfqq_request_over_limitfunction syncfunction queuefunction bfq_rq_pos_tree_lookupfunction bfq_too_late_for_mergingfunction likelyfunction throughputfunction bfq_weights_tree_addfunction bfq_weights_tree_addfunction bfq_serv_to_chargefunction requestfunction bfq_wr_durationfunction switch_back_to_interactive_wrfunction bfq_bfqq_resume_statefunction bfqq_process_refsfunction bfq_reset_burst_listfunction bfq_handle_burstfunction bfq_add_to_burstfunction purposefunction bfq_bfqq_budget_leftfunction bfq_max_budgetfunction budgetfunction receivesfunction bfq_bfqq_budget_leftfunction bfq_smallest_from_nowfunction bfq_update_bfqq_wr_on_rq_arrivalfunction bfq_bfqq_idle_for_long_timefunction bfq_bfqq_higher_class_or_weightfunction bfq_actuator_indexfunction bfq_bfqq_handle_idle_busy_switchfunction time_is_before_jiffiesfunction bfq_reset_inject_limitfunction bfq_update_io_intensityfunction bfq_select_queuefunction bfq_add_requestfunction get_sdistfunction bfq_remove_requestfunction bfq_bio_mergefunction bfq_request_mergefunction bfq_request_mergedfunction tablefunction bfq_bfqq_end_wrfunction bfq_end_wr_async_queuesfunction bfq_end_wrfunction bfq_io_struct_pos
Annotated Snippet
module_init(bfq_init);
module_exit(bfq_exit);
MODULE_AUTHOR("Paolo Valente");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("MQ Budget Fair Queueing I/O Scheduler");
Annotation
- Immediate include surface: `linux/module.h`, `linux/slab.h`, `linux/blkdev.h`, `linux/cgroup.h`, `linux/ktime.h`, `linux/rbtree.h`, `linux/ioprio.h`, `linux/sbitmap.h`.
- Detected declarations: `function bic_set_bfqq`, `function bfq_schedule_dispatch`, `function bfqq_request_over_limit`, `function bfqq_request_over_limit`, `function sync`, `function queue`, `function bfq_rq_pos_tree_lookup`, `function bfq_too_late_for_merging`, `function likely`, `function throughput`.
- 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.