current_clocksource_show(9)
π current_clocksource_show β a kernel API manual moment
okay so bestie, welcome to current_clocksource_show(9) β yes that's the kernel API manual, and yes we're gonna get through it together π«Ά
β¨ NAME β¨
current_clocksource_show β the sysfs interface for the current clocksource πΈ
β¨ SYNOPSIS β¨
ssize_t current_clocksource_show (struct device *dev , struct
device_attribute *attr , char *buf );
like, that's the whole signature, no cap π
β¨ ARGUMENTS β¨
devβ unused π literally does not get used, she's just there for the vibeattrβ unused too π same situation, purely decorativebufβ thecharbuffer that gets filled up with the clocksource list π this is the one actually doing the work
β¨ DESCRIPTION β¨
so what does she do? she provides the sysfs interface for listing the current clocksource β¨ that's it, that's the whole thing, and honestly? iconic π
β¨ SEE ALSO β¨
if you're obsessed (and you should be), go check out the kernel file ./kernel/time/clocksource.c β plus all of these besties:
clocks_calc_mult_shift(9)clocksource_mark_unstable(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_store(9)unbind_clocksource_store(9)available_clocksource_show(9)boot_override_clocksource(9)boot_override_clock(9)
like, the whole clocksource friend group fr fr π¦
ok that's the page!! now go read the family, they're all waiting π
mwah π this has been current_clocksource_show(9) from ./kernel/time, dated October 2026 β 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