preempt_notifier_unregister(9)
π preempt_notifier_unregister β like, the Kernel API Manual tea π
okay so bestie, we're in the Kernel API Manual today and the main character is preempt_notifier_unregister(9). she's short, she's sweet, she's lowkey a one-job icon. let's get into it β¨
πΈ NAME πΈ
preempt_notifier_unregister β no longer interested in preemption notifications
yes queen, you're literally breaking up with the notifications. it's giving "we need to talk" but in kernel form π
π SYNOPSIS π
void preempt_notifier_unregister (struct preempt_notifier *notifier );
returns void btw β she gives nothing back, she just does π
π¦ ARGUMENTS π¦
notifierβ the notifier struct you wanna unregister. that's it. that's the whole argument. hand her the struct and she'll handle it π«Ά
β¨ DESCRIPTION β¨
okay so here's the thing, and I need you to listen: this is *not* safe to call from within a preemption notifier.
π¨ fr fr, do NOT do it. not from inside a preemption notifier. it says *not* with the asterisks and everything, that's how serious it is π
that's genuinely the whole description. short king energy π
π₯ SEE ALSO π₯
the whole kernel sched friend group showed up for this one, no cap:
- Kernel file
./kernel/sched/core.c 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_register(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)
like, the entire group chat got invited π«Άβ¨
and that's the page!! π sourced straight from ./kernel/sched, dated October 2026, and filed under preempt_notifier_unregister(9) β mwah, slay, periodt ππ
π
π¦ 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