STRUCT CPU_TIMER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct cpu_timer(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual πŸ’– this page is literally all about struct cpu_timer β€” the Posix CPU timer representation for k_itimer. yes that is the whole NAME section and yes it slays πŸŽ€


✨ SYNOPSIS ✨

lowkey the whole vibe is right here, no cap:

struct cpu_timer {
    struct timerqueue_node          node;
    struct timerqueue_head          *head;
    struct pid                      *pid;
    struct list_head                elist;
    bool firing;
    bool nanosleep;
    struct task_struct *handling;
 };

🌸 Members 🌸

every field is a main character, let's meet them 🫢

  • node β€” the timerqueue node that gets queued up in the task/sig πŸ¦‹
  • head β€” the timerqueue head this timer is queued on, iykyk πŸ’«
  • pid β€” a pointer to the target task PID πŸ‘‘
  • elist β€” list head for the expiry list, iconic πŸ’…
  • firing β€” timer is currently firing πŸ”₯ like right now, actively doing the thing
  • nanosleep β€” this timer is used for nanosleep and is not a regular posix-timer πŸ™ˆ important distinction bestie
  • handling β€” pointer to the task which handles expiry ⭐

πŸ‘€ SEE ALSO πŸ‘€

  • Kernel file ./include/linux/posix-timers.h
  • struct k_itimer(9)

k bye bestie, go read those headers πŸ’œβœ¨

this masterpiece came from ./include/linux, dated October 2026, and yeah it's signed struct cpu_timer(9) at the bottom, periodt πŸŽ€πŸ’–

πŸ“¦ where this page comes from