__scx_add_event(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __scx_add_event(9) β€” like, the Kernel API Manual page, but make it make sense πŸŽ€

okay bestie, so this lil function lives in the Kernel API Manual and honestly? it's giving "small but mighty." it bumps an event counter for name up by cnt. that's it. that's the whole vibe. ✨


✨ NAME ✨

__scx_add_event β€” increase an event counter for name by cnt πŸ’–

no cap, that's literally what it does. counter go brrr. 🌸


🌈 SYNOPSIS 🌈

__scx_add_event (sch , name , cnt );

look at her. three args, zero drama. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • sch β€” the scx_sched you're accounting events for. like, whose stats are we updating, bestie? πŸ‘‘
  • name β€” an event name defined in struct scx_event_stats. pick your fighter, it has to be one of those, okay? πŸ’…
  • cnt β€” the number of the event that occurred. yes, it's a count. yes, you can count on it. πŸ”₯

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: this should be used only when preemption is disabled. ⚠️ not "usually," not "probably," not "whenever you feel like it." only. the way that this is a hard requirement and not a suggestion 😭 please respect it.

fr fr, preemption disabled. don't come crying to me if you ignore this. πŸ’€

πŸ’œ SEE ALSO πŸ’œ

go touch some grass in the kernel source, specifically this file:

  • ./kernel/sched/ext/internal.h β€” the home base 🏠

and then the whole squad, because the manpage said so and we don't skip entries in this house:

iykyk. read them all. 🌟


sign-off szn: this absolute banger of a page comes from ./kernel/sched/ext, dated October 2026, and it's the __scx_add_event(9) manual page one last time for the people in the back. slay, stay preemption-free, and happy counting πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from