block/blk-iolatency.c
Source file repositories/reference/linux-study-clean/block/blk-iolatency.c
File Facts
- System
- Linux kernel
- Corpus path
block/blk-iolatency.c- Extension
.c- Size
- 30204 bytes
- Lines
- 1072
- 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/blk_types.hlinux/backing-dev.hlinux/module.hlinux/timer.hlinux/memcontrol.hlinux/sched/loadavg.hlinux/sched/signal.htrace/events/block.hlinux/blk-mq.hblk-rq-qos.hblk-stat.hblk-cgroup.hblk.h
Detected Declarations
struct iolatency_grpstruct blk_iolatencystruct child_latency_infostruct percentile_statsstruct latency_statstruct iolatency_grpfunction latency_stat_initfunction latency_stat_sumfunction latency_stat_record_timefunction latency_sum_okfunction latency_stat_samplesfunction iolat_update_total_lat_avgfunction iolat_cleanup_cbfunction iolat_acquire_inflightfunction __blkcg_iolatency_throttlefunction scale_amountfunction scale_cookie_changefunction scale_changefunction check_scale_changefunction blkcg_iolatency_throttlefunction iolatency_record_timefunction iolatency_check_latenciesfunction blkcg_iolatency_done_biofunction blkcg_iolatency_exitfunction blkiolatency_timer_fnfunction blkiolatency_enable_work_fnfunction blk_iolatency_initfunction iolatency_set_min_lat_nsecfunction iolatency_clear_scalingfunction iolatency_set_limitfunction iolatency_prfill_limitfunction iolatency_print_limitfunction iolatency_ssd_statfunction iolatency_pd_statfunction iolatency_pd_initfunction for_each_possible_cpufunction iolatency_pd_offlinefunction iolatency_pd_freefunction iolatency_initfunction iolatency_exitmodule init iolatency_init
Annotated Snippet
module_init(iolatency_init);
module_exit(iolatency_exit);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/blk_types.h`, `linux/backing-dev.h`, `linux/module.h`, `linux/timer.h`, `linux/memcontrol.h`, `linux/sched/loadavg.h`, `linux/sched/signal.h`.
- Detected declarations: `struct iolatency_grp`, `struct blk_iolatency`, `struct child_latency_info`, `struct percentile_stats`, `struct latency_stat`, `struct iolatency_grp`, `function latency_stat_init`, `function latency_stat_sum`, `function latency_stat_record_time`, `function latency_sum_ok`.
- 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.