ktime_get_aux(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ktime_get_aux(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” yes we're doing kernel timekeeping today, put your hair up, we're going in πŸŽ€


✨ NAME ✨

ktime_get_aux β€” get the time for a AUX clock πŸ•°οΈ


🌸 SYNOPSIS 🌸

bool ktime_get_aux (clockid_t id , ktime_t *kt );

literally the whole signature, no cap. it hands you back a bool, takes a clockid_t and a pointer to a ktime_t, that's the vibe πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • id β€” the ID of the clock you wanna read (the CLOCK_AUX... family, iykyk). pick your clock, bestie, like picking a fit πŸ‘‘
  • kt β€” a pointer to the ktime_t where the timestamp gets stored. this is where the magic lands πŸͺ„

⭐ RETURN ⭐

True if the timestamp is valid, false otherwise 🫢

so like β€” check it. don't just assume. the function is literally telling you whether it ate or not 😭


πŸ’œ SEE ALSO πŸ’œ

okay this list is long long, so buckle in, we're doing the whole friend group πŸ‘‘

Kernel file ./kernel/time/timekeeping.c:

like I said. the whole group chat πŸ’€


lowkey reminder: ktime_get_aux gives you a AUX clock read, and its boolean return is your vibe check β€” True means the timestamp is valid, false means nope πŸ™ˆ

and that's the page, bestie! brought to you by ./kernel/time, dated October 2026 β€” mwah, go read some timekeeping source, ily πŸŒˆπŸ’–

πŸ“¦ where this page comes from