io_uring/io-wq.c
Source file repositories/reference/linux-study-clean/io_uring/io-wq.c
File Facts
- System
- Linux kernel
- Corpus path
io_uring/io-wq.c- Extension
.c- Size
- 37727 bytes
- Lines
- 1525
- Domain
- Kernel Services
- Bucket
- io_uring
- Inferred role
- Kernel Services: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Shared kernel service surface used by multiple subsystems, including helpers, cryptography, virtualization support, and async I/O infrastructure.
- Shared kernel service surface used by multiple subsystems, including helpers, cryptography, virtualization support, and async I/O infrastructure.
- 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/init.hlinux/errno.hlinux/sched/signal.hlinux/percpu.hlinux/slab.hlinux/rculist_nulls.hlinux/cpu.hlinux/cpuset.hlinux/task_work.hlinux/audit.hlinux/mmu_context.hlinux/sched/sysctl.huapi/linux/io_uring.hio-wq.hslist.hio_uring.h
Detected Declarations
struct io_workerstruct io_wq_acctstruct io_wqstruct io_cb_cancel_datastruct online_datafunction __io_get_work_hashfunction io_get_work_hashfunction io_worker_getfunction io_worker_releasefunction io_worker_ref_putfunction io_wq_worker_stoppedfunction io_worker_cancel_cbfunction io_task_worker_matchfunction io_worker_exitfunction __io_acct_run_queuefunction io_acct_run_queuefunction io_acct_activate_free_workerfunction io_wq_create_workerfunction io_wq_inc_runningfunction create_worker_cbfunction io_queue_worker_createfunction io_wq_hash_deferfunction io_wq_dec_runningfunction __io_worker_busyfunction __io_worker_idlefunction io_wait_on_hashfunction wq_list_for_eachfunction io_assign_current_workfunction io_worker_handle_workfunction io_wq_workerfunction io_wq_worker_runningfunction io_wq_worker_sleepingfunction io_init_new_workerfunction io_wq_work_match_allfunction io_should_retry_threadfunction queue_create_worker_retryfunction create_worker_contfunction io_workqueue_createfunction create_io_workerfunction io_acct_for_each_workerfunction list_for_each_entry_rcufunction io_wq_for_each_workerfunction io_wq_worker_wakefunction io_wq_set_exit_on_idlefunction io_run_cancelfunction io_wq_insert_workfunction io_wq_work_match_itemfunction io_wq_enqueue
Annotated Snippet
subsys_initcall(io_wq_init);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/errno.h`, `linux/sched/signal.h`, `linux/percpu.h`, `linux/slab.h`, `linux/rculist_nulls.h`, `linux/cpu.h`.
- Detected declarations: `struct io_worker`, `struct io_wq_acct`, `struct io_wq`, `struct io_cb_cancel_data`, `struct online_data`, `function __io_get_work_hash`, `function io_get_work_hash`, `function io_worker_get`, `function io_worker_release`, `function io_worker_ref_put`.
- Atlas domain: Kernel Services / io_uring.
- 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.