get_timespec64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 destination struct timespec64, aka where the time lands πŸ’–
  • uts β€” the user's time value, handed over as a struct __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 🌈

  • 0 on 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 🫢:


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