ns_to_timespec64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 little s64. 🫢

πŸ’… 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:


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