ns_to_timespec64(9)
π NAME π
Okay bestie, this is ns_to_timespec64(9) from the Kernel API Manual β yes, the real one β and its whole personality is Convert nanoseconds to timespec64. Like, nanoseconds in, timespec64 out. Iconic behavior, honestly. π
β¨ SYNOPSIS β¨
struct timespec64 ns_to_timespec64 (s64 nsec );
πΈ ARGUMENTS πΈ
nsecβ the nanoseconds value to be converted. Thatβs the whole argument list, bestie: just this one littles64. π«Ά
π RETURN π
It returns the timespec64 representation of the nsec parameter. No cap, thatβs the return value. β¨
π¦ SEE ALSO π¦
Kernel file ./kernel/time/time.c, plus the whole friend group:
jiffies_to_msecs(9)jiffies_to_usecs(9)mktime64(9)set_normalized_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)put_itimerspec64(9)get_old_itimerspec32(9)put_old_itimerspec32(9)
mwah π this page is from the Kernel API Manual, source ./kernel/time, dated October 2026. ns_to_timespec64(9) signing off! π
π¦ 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