get_timespec64(9)
π get_timespec64(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little function from the kernel's time corner and it's lowkey iconic π°οΈπ
πΈ NAME πΈ
get_timespec64 β literally pulls the user's time value into kernel space π«Ά no cap, that's the whole job.
β¨ SYNOPSIS β¨
int get_timespec64 (struct timespec64 *ts , const struct __kernel_timespec __user *uts );
π ARGUMENTS π
tsβ the destinationstruct timespec64, aka where the time lands πutsβ the user's time value, handed over as astruct __kernel_timespecπ
π¦ DESCRIPTION π¦
It handles compat or 32-bit modes. that's the whole description, she's short and mysterious and honestly? main character energy πβ¨
π RETURN π
0on success π- a negative errno on error π (yes, negative, don't come for her)
π SEE ALSO π
Kernel file ./kernel/time/time.c β plus the whole friend group, and we're listing every single one because nobody gets left behind π«Ά:
jiffies_to_msecs(9)jiffies_to_usecs(9)mktime64(9)set_normalized_timespec64(9)ns_to_timespec64(9)__msecs_to_jiffies(9)__usecs_to_jiffies(9)timespec64_to_jiffies(9)jiffies_to_timespec64(9)jiffies_to_clock_t(9)clock_t_to_jiffies(9)jiffies_64_to_clock_t(9)nsec_to_clock_t(9)jiffies64_to_nsecs(9)jiffies64_to_msecs(9)nsecs_to_jiffies64(9)nsecs_to_jiffies(9)timespec64_add_safe(9)put_timespec64(9)get_old_timespec32(9)put_old_timespec32(9)get_itimerspec64(9)put_itimerspec64(9)get_old_itimerspec32(9)put_old_itimerspec32(9)
ngl this page is tiny but every detail ate, so read it twice bestie π
mwah, that's the whole page! π this gem lives in ./kernel/time and the date on it is October 2026 β go off, queen πβ¨ see u in the group chat π«Άπ
π¦ 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