timekeeping_...rce_has_base(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… timekeeping_...rce_has_base(9) β€” Kernel API Manual πŸ’…

okay bestie, welcome to the Kernel API Manual page for timekeeping_clocksource_has_base() ✨ this is the little function that does a vibe check on clocksources.


🌸 NAME 🌸

timekeeping_clocksource_has_base β€” check whether the current clocksource is based on given a base clock πŸŽ€

✨ SYNOPSIS ✨

literally, here's the signature, no cap:

bool timekeeping_clocksource_has_base (enum clocksource_ids id );

πŸŽ€ ARGUMENTS πŸŽ€

  • id β€” the base clocksource ID you're asking about πŸ¦‹

πŸ’€ NOTE πŸ’€

⚠️ big heads-up, bestie: the return value is a snapshot which can become invalid right after the function returns. so don't treat it like a forever lock 😭

πŸ¦‹ RETURN πŸ¦‹

It gives you true if the timekeeper clocksource has a base clock with id, and false otherwise. periodt. πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

the whole squad, in the order the page lists them β€” starting with the Kernel file ./kernel/time/timekeeping.c, then:


mwah πŸ’‹ this one comes from ./kernel/time and it's dated October 2026 β€” catch you in the kernel, bestie 🫢

πŸ“¦ where this page comes from