Searched refs:tv_nsec (Results 1 – 13 of 13) sorted by relevance
/DragonOS/kernel/src/time/ |
H A D | sleep.rs | 27 if sleep_time.tv_nsec < 0 || sleep_time.tv_nsec >= 1000000000 { in nanosleep() 31 if sleep_time.tv_nsec < 500000 && sleep_time.tv_sec == 0 { in nanosleep() 32 let expired_tsc: usize = CurrentTimeArch::cal_expire_cycles(sleep_time.tv_nsec as usize); in nanosleep() 38 tv_nsec: 0, in nanosleep() 43 sleep_time.tv_sec as u64 * 1000000 + sleep_time.tv_nsec as u64 / 1000; in nanosleep()
|
H A D | timekeeping.rs | 84 tv_nsec: 0, in new() 88 tv_nsec: 0, in new() 92 tv_nsec: 0, in new() 96 tv_nsec: 0, in new() 327 xtime.tv_nsec += nsecs; in getnstimeofday() 328 xtime.tv_sec += xtime.tv_nsec / NSEC_PER_SEC as i64; in getnstimeofday() 329 xtime.tv_nsec %= NSEC_PER_SEC as i64; in getnstimeofday() 346 tv_usec: (tp.tv_nsec / 1000) as i32, in do_gettimeofday() 373 timekeeper.xtime.tv_nsec = ktime_get_real_ns(); in timekeeping_init() 377 timekeeper.wall_to_monotonic.tv_nsec, in timekeeping_init() [all …]
|
H A D | mod.rs | 56 pub tv_nsec: i64, field 64 tv_nsec: nsec, in new() 97 self.tv_sec * 1000000000 + self.tv_nsec in total_nanos() 105 let nsec = self.tv_nsec.checked_sub(rhs.tv_nsec).unwrap_or(0); in sub() 114 tv_nsec: (dur.total_micros() as i64 % 1000000) * 1000, in from() 123 tv_nsec: value.tv_usec as i64 * 1000, in from() 130 Duration::from_micros(val.tv_sec as u64 * 1000000 + val.tv_nsec as u64 / 1000) in from() 242 Self::from_micros(tm.tv_sec * 1000000 + tm.tv_nsec / 1000) in now()
|
H A D | timekeep.rs | 30 let r = time_spec.tv_sec * 1_000_000_000 + time_spec.tv_nsec; in ktime_get_real() 60 return ktime_set(ts.tv_sec, ts.tv_nsec as u64); in timespec_to_ktime()
|
H A D | syscall.rs | 84 tv_nsec: unsafe { *sleep_time }.tv_nsec, in nanosleep() 90 unsafe { *rm_time }.tv_nsec = slt_spec.tv_nsec; in nanosleep()
|
/DragonOS/user/apps/test_fstat/ |
H A D | main.c | 29 printf("st_atim.sec= %ld\tst_atim.nsec= %ld\n", (*st).st_atim.tv_sec, (*st).st_atim.tv_nsec); in main() 30 printf("st_mtim.sec= %ld\tst_mtim.nsec= %ld\n", (*st).st_mtim.tv_sec, (*st).st_mtim.tv_nsec); in main() 31 printf("st_ctim.sec= %ld\tst_ctim.nsec= %ld\n", (*st).st_ctim.tv_sec, (*st).st_ctim.tv_nsec); in main()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | syscall.rs | 137 tv_nsec: 0, in new() 141 tv_nsec: 0, in new() 145 tv_nsec: 0, in new() 225 tv_nsec: 0, in new() 229 tv_nsec: 0, in new() 233 tv_nsec: 0, in new() 237 tv_nsec: 0, in new() 1307 kstat.atime.tv_nsec = metadata.atime.tv_nsec; in do_fstat() 1309 kstat.mtime.tv_nsec = metadata.mtime.tv_nsec; in do_fstat() 1311 kstat.ctime.tv_nsec = metadata.ctime.tv_nsec; in do_fstat() [all …]
|
H A D | open.rs | 279 if atime.tv_nsec == UTIME_NOW { 281 } else if atime.tv_nsec != UTIME_OMIT { 284 if mtime.tv_nsec == UTIME_NOW { 286 } else if mtime.tv_nsec != UTIME_OMIT {
|
/DragonOS/user/apps/test_statx/src/ |
H A D | main.rs | 38 pub tv_nsec: u32, field
|
/DragonOS/kernel/src/filesystem/procfs/ |
H A D | log.rs | 103 level, timestamp.tv_sec, timestamp.tv_nsec, message in fmt()
|
/DragonOS/kernel/src/net/ |
H A D | net_core.rs | 130 tv_nsec: 0, in dhcp_query()
|
/DragonOS/kernel/src/net/event_poll/ |
H A D | mod.rs | 431 if !(timespec.tv_sec > 0 || timespec.tv_nsec > 0) { in do_epoll_wait() 489 (timespec.tv_sec * 1000000 + timespec.tv_nsec / 1000) as u64, in do_epoll_wait()
|
/DragonOS/kernel/src/libs/futex/ |
H A D | futex.rs | 275 let nsec = time.tv_nsec; in futex_wait()
|