clocksource_mark_unstable(9)
π clocksource_mark_unstable β bestie edition β¨
okay so like, we're in the Kernel API Manual today, and this page is clocksource_mark_unstable(9). yes the name is a mouthful, no we're not changing it, it's iconic. π«Ά
β¨ NAME β¨
clocksource_mark_unstable β mark a clocksource as unstable, courtesy of the watchdog π
πΈ SYNOPSIS πΈ
void clocksource_mark_unstable (struct clocksource *cs );
like, that's it. that's the whole vibe. void return, one argument, no drama. π
π ARGUMENTS π
csβ the clocksource that's about to get marked unstable. not a guess at a clocksource, the actualstruct clocksource *bestie. this is the one getting the β¨not like the other girlsβ¨ treatment.
π¦ DESCRIPTION π¦
okay so here's the tea π΅ β this function gets called by the x86 TSC code to mark clocksources as unstable. it's giving "the bouncer at the club checking IDs" energy.
and the important part: it does not do the demotion and re-selection work right then and there. nope. it defers all of that to a kthread. so the function just kind ofβ¦ flags the situation and dips π, letting the kthread handle the actual messy admin later. delegation icon! π
π SEE ALSO π
ok so this function does not exist in a vacuum, bestie, there's a whole squad in the kernel file ./kernel/time/clocksource.c and here's the full roster, no one gets left behind:
clocks_calc_mult_shift(9)clocksource_suspend_select(9)clocksource_start_suspend_timing(9)clocksource_stop_suspend_timing(9)clocksource_suspend(9)clocksource_resume(9)clocksource_touch_watchdog(9)clocksource_max_adjustment(9)clocks_calc_max_nsecs(9)clocksource_update_max_deferment(9)clocksource_select(9)__clocksource_update_freq_scale(9)__clocksource_register_scale(9)clocksource_unregister(9)current_clocksource_show(9)current_clocksource_store(9)unbind_clocksource_store(9)available_clocksource_show(9)boot_override_clocksource(9)boot_override_clock(9)
literally the whole group chat π
and that's the page! π this lil drop came to you from ./kernel/time, dated October 2026, and it's called clocksource_mark_unstable(9) in case you already forgot (you didn't, you ate that). mwah πβ¨ stay stable-ish, 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