ct_idle_enter(9)
π€ ct_idle_enter(9) π€
okay so this is a page from the Kernel API Manual β yes, the kernel has lore too, and this lil function is lowkey iconic in the context-tracking world π
β¨ NAME β¨
ct_idle_enter β the function that tells RCU "bestie, this CPU is heading into idle mode, don't wait up" π
πΈ SYNOPSIS πΈ
void noinstr ct_idle_enter (void );
π¦ ARGUMENTS π¦
voidβ literally no arguments. nothing. zero. the void is voiding π
π DESCRIPTION π
So what it does: it enters idle mode. Which is to say β and this is the important bit β it -leaves- the mode where RCU read-side critical sections can occur. like, it's the exit door for that whole situation πͺβ¨
(and yes, before you come for me: RCU read-side critical sections can still occur in irq handlers while in idle. that whole possibility is handled by irq_enter and irq_exit, so don't @ me π«Ά)
β οΈ no cap warning: if you add or remove a call toct_idle_enter, you gotta test withCONFIG_RCU_EQS_DEBUG=y. like, actually test it. fr fr. don't skip this, it's giving "i'll test in prod" energy and that's not the vibe π
π SEE ALSO π
- the kernel file
./kernel/context_tracking.cβ go read it, it's the main character of this story β ct_nmi_exit(9)ct_nmi_enter(9)ct_idle_exit(9)ct_irq_enter(9)ct_irq_exit(9)__ct_user_enter(9)user_enter_callable(9)__ct_user_exit(9)user_exit_callable(9)
okay that's the whole page, slay π
β¨ this was ./kernel, October 2026 β catch you on the next one, bestie π¦ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms