block/blk-iocost.c
Source file repositories/reference/linux-study-clean/block/blk-iocost.c
File Facts
- System
- Linux kernel
- Corpus path
block/blk-iocost.c- Extension
.c- Size
- 102757 bytes
- Lines
- 3601
- 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/module.hlinux/timer.hlinux/time64.hlinux/parser.hlinux/sched/signal.hasm/local.hasm/local64.hblk-rq-qos.hblk-stat.hblk-wbt.hblk-cgroup.htrace/events/iocost.h
Detected Declarations
struct ioc_paramsstruct ioc_marginsstruct ioc_missedstruct ioc_pcpu_statstruct iocstruct iocg_pcpu_statstruct iocg_statstruct ioc_gqstruct ioc_cgrpstruct ioc_nowstruct iocg_waitstruct iocg_wake_ctxenum ioc_runningenum over_budget_actionfunction abs_cost_to_costfunction abs_cost_to_costfunction iocg_commit_biofunction ioc_refresh_marginsfunction ioc_refresh_period_usfunction ioc_autop_idxfunction calc_lcoefsfunction ioc_refresh_lcoefsfunction ioc_refresh_params_diskfunction ioc_refresh_paramsfunction ioc_refresh_vratefunction ioc_adjust_base_vratefunction ioc_nowfunction ioc_start_periodfunction __propagate_weightsfunction commit_weightsfunction propagate_weightsfunction current_hweightfunction current_hweight_maxfunction weight_updatedfunction iocg_activatefunction iocg_kick_delayfunction iocg_incur_debtfunction iocg_pay_debtfunction iocg_wake_fnfunction iocg_kick_waitqfunction iocg_waitq_timer_fnfunction ioc_lat_statfunction for_each_online_cpufunction iocg_is_idlefunction iocg_build_inner_walkfunction iocg_flush_stat_upwardfunction iocg_flush_stat_leaffunction iocg_flush_stat
Annotated Snippet
module_init(ioc_init);
module_exit(ioc_exit);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/timer.h`, `linux/time64.h`, `linux/parser.h`, `linux/sched/signal.h`, `asm/local.h`, `asm/local64.h`.
- Detected declarations: `struct ioc_params`, `struct ioc_margins`, `struct ioc_missed`, `struct ioc_pcpu_stat`, `struct ioc`, `struct iocg_pcpu_stat`, `struct iocg_stat`, `struct ioc_gq`, `struct ioc_cgrp`, `struct ioc_now`.
- 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.