ct_idle_enter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ 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 to ct_idle_enter, you gotta test with CONFIG_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 πŸ‘‘


okay that's the whole page, slay πŸ’…βœ¨ this was ./kernel, October 2026 β€” catch you on the next one, bestie πŸ¦‹πŸŒˆπŸ’œ

πŸ“¦ where this page comes from