put_old_timespec32(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« put_old_timespec32(9) πŸ’«

okay bestie, welcome to the Kernel API Manual ✨ today's main character is put_old_timespec32(9) and honestly? she's a little niche but she slays at ABI compat 🫢


🌸 NAME 🌸

put_old_timespec32 β€” converts a timespec64 value into a &struct old_timespec32 and then copies that latter thing over to userspace πŸ’…


⭐ SYNOPSIS ⭐

int put_old_timespec32 (const struct timespec64 *ts , void __user *uts );

πŸŽ€ ARGUMENTS πŸŽ€

  • ts β€” the input struct timespec64, like, the source of truth bestie πŸ’–
  • uts β€” the user's struct old_timespec32, i.e. where it's all going πŸ¦‹

πŸ”₯ DESCRIPTION πŸ”₯

so what does she actually do? she handles the X86_X32_ABI compatibility conversion ✨ that's the whole vibe, no cap. it's giving "translator friend who speaks both dialects" energy ngl πŸ‘‘


🌈 RETURN 🌈

returns 0 on success, or a negative errno on error 😭 (so fr fr, check that return value, iykyk)


πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./kernel/time/time.c β€” and the whole extended friend group, all of them, in order, no skipping 🫢

like, the whole timespec/itimerspec family reunion πŸ’€ iconic behavior honestly 🧚


and that's the page!! brought to you by the fine people at ./kernel/time 🌸 dated October 2026, and yes the footer still says put_old_timespec32(9) because she's the moment πŸ’œ byeeee βœ¨πŸ’…

πŸ“¦ where this page comes from