put_timespec64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ put_timespec64 ✨

okay so bestie, we're in the put_timespec64(9) part of the Kernel API Manual and honestly this one is a little superstar 🌟 β€” it's the girl that takes your kernel-side time value and yeets it out to userspace in the format userspace actually asked for. no cap.


πŸ’– NAME πŸ’–

put_timespec64 β€” convert a timespec64 value into __kernel_timespec format and copy the latter to userspace 🫢


πŸŽ€ SYNOPSIS πŸŽ€

int put_timespec64 (const struct timespec64 *ts , struct
       __kernel_timespec __user *uts );

🌸 ARGUMENTS 🌸

  • ts β€” the input struct timespec64, i.e. the time value coming in. literally the source of truth πŸ’…
  • uts β€” the user's struct __kernel_timespec, i.e. where it's headed. that's the destination, the whole point, the main character of this function 🌈

⭐ RETURN ⭐

0 on success, or a negative errno on error 😭 β€” so like, check it, bestie. don't just assume it slayed.

fr fr, a negative errno means something went wrong, and the original page says exactly that and nothing more, so we're not gonna invent drama about which error. nope πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

the Kernel file ./kernel/time/time.c is where this whole friend group lives, and honestly the guest list is long, so buckle up bestie:

like, the entire time-conversion clique πŸ‘‘ and yes, get_timespec64(9) is the reverse-direction bestie β€” you'll see her around πŸ’œ


and that's the page!! πŸ“ cute lil sign-off for you: this one comes from ./kernel/time, dated October 2026, and it's giving "tiny function, huge friend group" energy. periodt. πŸ’…βœ¨πŸ§š

πŸ“¦ where this page comes from