ktime_set(9)
π NAME π
okay so bestie, welcome to the ktime_set(9) page from the Kernel API Manual β¨ ktime_set β Set a ktime_t variable from a seconds/nanoseconds value. That's the whole vibe: seconds plus nanoseconds, and this function is the main character that sets your ktime_t. π
πΈ SYNOPSIS πΈ
ktime_t ktime_set (const s64 secs , const unsigned long nsecs );
No cap, that's the exact signature β const s64 secs, const unsigned long nsecs, and it hands back a ktime_t. π«Ά
π ARGUMENTS π
secsβ seconds to set β±οΈnsecsβ nanoseconds to set β¨
π¦ RETURN π¦
The ktime_t representation of the value. That's it, that's the tea π
π SEE ALSO π
- Kernel file
./include/linux/ktime.h ktime_compare(9)ktime_after(9)ktime_before(9)ktime_to_timespec64_cond(9)
mwah π this page came from ./include/linux, dated October 2026, and it's literally ktime_set(9) β 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