get_itimerspec64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– get_itimerspec64(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual, page get_itimerspec64(9) β€” this one's a little function with a big job and honestly it's giving "quiet luxury." πŸŽ€


✨ NAME ✨

get_itimerspec64 β€” literally copies the user's &struct __kernel_itimerspec into kernel space. that's it. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

int get_itimerspec64 (struct itimerspec64 *it , const struct
__kernel_itimerspec __user *uit );

so it takes two args and hands you back an int, no cap. ✨


πŸ’… ARGUMENTS πŸ’…

  • it β€” the destination struct itimerspec64. this is where the good stuff lands. it's the main character of this whole operation πŸ‘‘
  • uit β€” the user's struct __kernel_itimerspec. yes, note the __user β€” that pointer comes from userland, so treat it with the respect (and suspicion) it deserves πŸ™ˆ

⭐ RETURN ⭐

0 on success, or a negative errno on error. so like, zero means slay, negative means something went sideways 😭

ngl, always check the return value. the kernel does NOT do "no thoughts head empty" energy, fr fr πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

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

and the whole friend group, because this function does not exist in a vacuum bestie:

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), get_timespec64(9), put_timespec64(9), get_old_timespec32(9), put_old_timespec32(9), put_itimerspec64(9), get_old_itimerspec32(9), put_old_itimerspec32(9)

iykyk πŸ’œ


and that's the page, bestie!! 🫢 this lil beauty lives over in ./kernel/time, October 2026 edition, and it's iconic for exactly what it is β€” no notes, periodt. πŸ‘‘πŸŒˆπŸ’–

πŸ“¦ where this page comes from