put_itimerspec64(9)
put_itimerspec64(9) β the Kernel API Manual, bestie edition π
okay so like, welcome to the put_itimerspec64(9) page from the Kernel API Manual β¨ β yes that's a section 9 page, kernel-internals territory, and yes you're gonna slay it.
πΈ NAME πΈ
put_itimerspec64 β the little function that converts a &struct itimerspec64 into __kernel_itimerspec format and then copies the latter over to userspace π«Ά
Like, it's giving "kernel side in, user side out." Translation era fr fr.
β¨ SYNOPSIS β¨
int put_itimerspec64 (const struct itimerspec64 *it , struct
__kernel_itimerspec __user *uit );
that's the whole signature, no cap π
π ARGUMENTS π
itβ the inputstruct itimerspec64, literally the thing you're converting from πuitβ the user'sstruct __kernel_itimerspec, aka where it ends up π¦
β RETURN β
0 on success, or a negative errno on error. that's it, that's the vibe check β
ngl bestie, always check the return value. negative errno is not a cute look to ignore π
π SEE ALSO π
the main character file here is ./kernel/time/time.c, and honestly the whole time-conversion friend group showed up π
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)get_itimerspec64(9)get_old_itimerspec32(9)put_old_itimerspec32(9)
like, the entire time-conversion group chat ππ go read them, iykyk.
and that's the page!! this lil icon lives in ./kernel/time and the source/version is ./kernel/time with a date of October 2026 β so yeah, mark your calendars bestie ποΈπ mwah, go convert some timer specs, periodt π§β¨
π¦ 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