Skip to content

linux/kernel/time/timer.c

Imported from _research/manual-study-linux/file-notes/linux__kernel__time__timer.c.md.

File Notes: kernel/time/timer.c

Status: reviewed.

Purpose: kernel timer implementation.

Review target: timer lifecycle, deferred execution, locking, and deterministic test models for Rust runtimes.

Evidence

  • delayed_work_timer_fn() appears around lines 665-668 and bridges timer expiry into workqueue execution.
  • The timer subsystem provides time-indexed callback execution; delayed work uses it to enqueue process-context work later.

Design Notes

Timers should not be treated as worker threads. A Rust runtime should separate deadline objects from work execution and make cancellation state explicit.