Searched refs:tv_nsec (Results 1 – 9 of 9) sorted by relevance
/DragonOS-0.1.8/kernel/src/time/ |
D | sleep.rs | 25 if sleep_time.tv_nsec < 0 || sleep_time.tv_nsec >= 1000000000 { in nanosleep() 30 if sleep_time.tv_nsec < 500000 { in nanosleep() 32 unsafe { _rdtsc() + (sleep_time.tv_nsec as u64 * Cpu_tsc_freq) / 1000000000 }; in nanosleep() 38 tv_nsec: 0, in nanosleep() 45 next_n_us_timer_jiffies((sleep_time.tv_nsec / 1000) as u64), in nanosleep() 62 tv_nsec: 0, in nanosleep() 93 tv_nsec: ((usec % 1000000) * 1000) as i64, in rs_usleep()
|
D | timekeeping.rs | 79 tv_nsec: 0, in new() 83 tv_nsec: 0, in new() 87 tv_nsec: 0, in new() 91 tv_nsec: 0, in new() 162 tv_nsec: 0, in getnstimeofday() 180 while _xtime.tv_nsec >= NSEC_PER_SEC.into() { in getnstimeofday() 181 _xtime.tv_nsec -= NSEC_PER_SEC as i64; in getnstimeofday() 199 tv_usec: (tp.tv_nsec / 1000) as i32, in do_gettimeofday() 218 timekeeper.xtime.tv_nsec = ktime_get_real_ns(); in timekeeping_init() 221 let mut nsec = -timekeeper.xtime.tv_nsec; in timekeeping_init() [all …]
|
D | syscall.rs | 58 tv_nsec: unsafe { *sleep_time }.tv_nsec, in nanosleep() 64 unsafe { *rm_time }.tv_nsec = slt_spec.tv_nsec; in nanosleep()
|
D | mod.rs | 44 pub tv_nsec: i64, field 52 tv_nsec: nsec, in new()
|
/DragonOS-0.1.8/user/apps/test_fstat/ |
D | main.c | 30 printf("st_atim.sec= %d\tst_atim.nsec= %d\n", (*st).st_atim.tv_sec, (*st).st_atim.tv_nsec); in main() 31 printf("st_mtim.sec= %d\tst_mtim.nsec= %d\n", (*st).st_mtim.tv_sec, (*st).st_mtim.tv_nsec); in main() 32 printf("st_ctim.sec= %d\tst_ctim.nsec= %d\n", (*st).st_ctim.tv_sec, (*st).st_ctim.tv_nsec); in main()
|
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/ |
D | time.md | 17 ``long int tv_nsec`` : 纳秒
|
/DragonOS-0.1.8/user/libs/libc/src/include/export/ |
D | time.h | 32 long int tv_nsec; // 纳秒 member
|
/DragonOS-0.1.8/user/libs/libc/src/ |
D | time.c | 28 tv_nsec : (long int)(usec % 1000000) * 1000UL in usleep()
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | syscall.rs | 106 tv_nsec: 0, in new() 110 tv_nsec: 0, in new() 114 tv_nsec: 0, in new() 589 kstat.atime.tv_nsec = metadata.atime.tv_nsec; in do_fstat() 591 kstat.mtime.tv_nsec = metadata.mtime.tv_nsec; in do_fstat() 593 kstat.ctime.tv_nsec = metadata.ctime.tv_nsec; in do_fstat()
|