preempt_notifier_register(9)
π preempt_notifier_register(9) π
okay so bestie, welcome to the Kernel API Manual β this page is literally named preempt_notifier_register, and the vibe is: tell me when current is being preempted & rescheduled. no cap, that's the whole name. β¨
πΈ NAME πΈ
preempt_notifier_register β tell me when current is being preempted & rescheduled. That's it, that's the energy. π
π¦ SYNOPSIS π¦
void preempt_notifier_register (struct preempt_notifier *notifier );
π ARGUMENTS π
notifierβ the notifier struct you're registering, bestie. yes, that exact one. π«Ά
π SEE ALSO π
The kernel file to peek at is <code>./kernel/sched/core.c</code>, and these are the whole squad:
wake_q_add(9)wake_q_add_safe(9)task_curr(9)try_to_wake_up(9)task_call_func(9)cpu_curr_snapshot(9)wake_up_process(9)preempt_notifier_unregister(9)prepare_task_switch(9)finish_task_switch(9)schedule_tail(9)schedule_preempt_disabled(9)preempt_schedule_notrace(9)init_idle(9)curr_task(9)
cute little sign-off: this page comes from source/version <code>./kernel/sched</code>, dated <code>October 2026</code>, and it's filed under preempt_notifier_register(9). mwah ππ
π¦ 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