put_old_timespec32(9)
π« 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 inputstruct timespec64, like, the source of truth bestie πutsβ the user'sstruct 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 π«Ά
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)get_itimerspec64(9)put_itimerspec64(9)get_old_itimerspec32(9)put_old_itimerspec32(9)
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
- 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