/DragonOS/kernel/src/time/ |
H A D | sleep.rs | 16 PosixTimeSpec, TimeArch, 26 pub fn nanosleep(sleep_time: PosixTimeSpec) -> Result<PosixTimeSpec, SystemError> { in nanosleep() argument 36 return Ok(PosixTimeSpec { in nanosleep() 61 let rm_time: PosixTimeSpec = (sleep_time - real_sleep_time.into()).into(); in nanosleep()
|
H A D | syscall.rs | 11 time::{sleep::nanosleep, PosixTimeSpec}, 76 sleep_time: *const PosixTimeSpec, in nanosleep() argument 77 rm_time: *mut PosixTimeSpec, in nanosleep() argument 82 let slt_spec = PosixTimeSpec { in nanosleep() 137 pub fn clock_gettime(clock_id: c_int, tp: *mut PosixTimeSpec) -> Result<usize, SystemError> { in clock_gettime() 145 let mut tp_buf = UserBufferWriter::new::<PosixTimeSpec>( in clock_gettime() 147 core::mem::size_of::<PosixTimeSpec>(), in clock_gettime()
|
H A D | mod.rs | 54 pub struct PosixTimeSpec { struct 59 impl PosixTimeSpec { argument 61 pub fn new(sec: i64, nsec: i64) -> PosixTimeSpec { in new() argument 62 return PosixTimeSpec { in new() 81 return PosixTimeSpec::default(); in now_cpu_time() 91 return PosixTimeSpec::new(0, 0); in now_cpu_time() 101 impl Sub for PosixTimeSpec { implementation 110 impl From<Duration> for PosixTimeSpec { implementation 112 PosixTimeSpec { in from() 119 impl From<PosixTimeval> for PosixTimeSpec { implementation [all …]
|
H A D | timekeep.rs | 9 use super::{PosixTimeSpec, NSEC_PER_SEC}; 29 let time_spec: PosixTimeSpec = rtc_time.into(); in ktime_get_real() 59 pub fn timespec_to_ktime(ts: PosixTimeSpec) -> ktime_t { in timespec_to_ktime()
|
H A D | timekeeping.rs | 14 PosixTimeSpec, 63 raw_time: PosixTimeSpec, 64 wall_to_monotonic: PosixTimeSpec, 65 total_sleep_time: PosixTimeSpec, 66 xtime: PosixTimeSpec, 83 xtime: PosixTimeSpec { in new() 87 wall_to_monotonic: PosixTimeSpec { in new() 91 total_sleep_time: PosixTimeSpec { in new() 95 raw_time: PosixTimeSpec { in new() 308 pub fn getnstimeofday() -> PosixTimeSpec { in getnstimeofday() [all …]
|
/DragonOS/kernel/src/filesystem/procfs/ |
H A D | log.rs | 5 use crate::time::PosixTimeSpec; 61 timestamp: PosixTimeSpec, 71 pub fn new(timestamp: PosixTimeSpec, level: LogLevel, message: String) -> Self { in new() argument
|
/DragonOS/kernel/src/process/ |
H A D | resource.rs | 4 use crate::time::PosixTimeSpec; 12 pub ru_utime: PosixTimeSpec, 14 pub ru_stime: PosixTimeSpec,
|
/DragonOS/kernel/src/filesystem/devfs/ |
H A D | null_dev.rs | 8 use crate::{libs::spinlock::SpinLock, time::PosixTimeSpec}; 45 atime: PosixTimeSpec::default(), in new() 46 mtime: PosixTimeSpec::default(), in new() 47 ctime: PosixTimeSpec::default(), in new()
|
H A D | zero_dev.rs | 8 use crate::{libs::spinlock::SpinLock, time::PosixTimeSpec}; 45 atime: PosixTimeSpec::default(), in new() 46 mtime: PosixTimeSpec::default(), in new() 47 ctime: PosixTimeSpec::default(), in new()
|
H A D | mod.rs | 18 time::PosixTimeSpec, 279 atime: PosixTimeSpec::default(), in new_with_parent() 280 mtime: PosixTimeSpec::default(), in new_with_parent() 281 ctime: PosixTimeSpec::default(), in new_with_parent() 370 atime: PosixTimeSpec::default(), in do_create_with_data() 371 mtime: PosixTimeSpec::default(), in do_create_with_data() 372 ctime: PosixTimeSpec::default(), in do_create_with_data()
|
/DragonOS/kernel/src/net/event_poll/ |
H A D | syscall.rs | 12 time::PosixTimeSpec, 45 timespec = Some(PosixTimeSpec::new(0, 0)); in epoll_wait() 52 timespec = Some(PosixTimeSpec::new(sec, nsec)) in epoll_wait()
|
/DragonOS/kernel/src/virt/kvm/ |
H A D | kvm_dev.rs | 11 use crate::{arch::KVMArch, libs::spinlock::SpinLock, time::PosixTimeSpec}; 63 atime: PosixTimeSpec::default(), in new() 64 mtime: PosixTimeSpec::default(), in new() 65 ctime: PosixTimeSpec::default(), in new()
|
H A D | vcpu_dev.rs | 15 use crate::{libs::spinlock::SpinLock, time::PosixTimeSpec}; 74 atime: PosixTimeSpec::default(), in new() 75 mtime: PosixTimeSpec::default(), in new() 76 ctime: PosixTimeSpec::default(), in new()
|
H A D | vm_dev.rs | 17 use crate::{arch::KVMArch, libs::spinlock::SpinLock, time::PosixTimeSpec}; 72 atime: PosixTimeSpec::default(), in new() 73 mtime: PosixTimeSpec::default(), in new() 74 ctime: PosixTimeSpec::default(), in new()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | mod.rs | 8 time::{Instant, PosixTimeSpec, NSEC_PER_SEC}, 141 impl From<RtcTime> for PosixTimeSpec { implementation 159 PosixTimeSpec::new(instant.secs(), (NSEC_PER_SEC >> 1).into()) in from()
|
H A D | class.rs | 17 time::{timekeeping::do_settimeofday64, PosixTimeSpec}, 100 let timespec64: PosixTimeSpec = time.into(); in rtc_hctosys()
|
/DragonOS/kernel/src/ipc/ |
H A D | shm.rs | 15 time::PosixTimeSpec, 379 shm_atim: PosixTimeSpec, 381 shm_dtim: PosixTimeSpec, 383 shm_ctim: PosixTimeSpec, 397 shm_atim: PosixTimeSpec::new(0, 0), in new() 398 shm_dtim: PosixTimeSpec::new(0, 0), in new() 399 shm_ctim: PosixTimeSpec::now(), in new() 416 self.shm_atim = PosixTimeSpec::now(); in update_atim() 425 self.shm_dtim = PosixTimeSpec::now(); in update_dtim() 434 self.shm_ctim = PosixTimeSpec::now(); in update_ctim()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | mod.rs | 24 time::PosixTimeSpec, 742 pub atime: PosixTimeSpec, 745 pub mtime: PosixTimeSpec, 748 pub ctime: PosixTimeSpec, 777 atime: PosixTimeSpec::default(), in default() 778 mtime: PosixTimeSpec::default(), in default() 779 ctime: PosixTimeSpec::default(), in default() 913 atime: PosixTimeSpec::default(), in new() 914 mtime: PosixTimeSpec::default(), in new() 915 ctime: PosixTimeSpec::default(), in new()
|
H A D | open.rs | 19 time::{syscall::PosixTimeval, PosixTimeSpec}, 249 times: Option<[PosixTimeSpec; 2]>, in do_utimensat() 275 let now = PosixTimeSpec::now(); 309 meta.atime = PosixTimeSpec::from(atime); 310 meta.mtime = PosixTimeSpec::from(mtime); 313 let now = PosixTimeSpec::now();
|
/DragonOS/kernel/src/libs/ |
H A D | printk.rs | 14 time::PosixTimeSpec, 74 let timestamp: PosixTimeSpec = PosixTimeSpec::now_cpu_time(); in log()
|
/DragonOS/kernel/src/driver/keyboard/ |
H A D | ps2_keyboard.rs | 35 time::PosixTimeSpec, 86 atime: PosixTimeSpec::default(), in new() 87 mtime: PosixTimeSpec::default(), in new() 88 ctime: PosixTimeSpec::default(), in new()
|
/DragonOS/kernel/src/filesystem/ramfs/ |
H A D | mod.rs | 12 time::PosixTimeSpec, 86 atime: PosixTimeSpec::default(), in new() 87 mtime: PosixTimeSpec::default(), in new() 88 ctime: PosixTimeSpec::default(), in new() 332 atime: PosixTimeSpec::default(), in create_with_data() 333 mtime: PosixTimeSpec::default(), in create_with_data() 334 ctime: PosixTimeSpec::default(), in create_with_data() 594 atime: PosixTimeSpec::default(), in mknod() 595 mtime: PosixTimeSpec::default(), in mknod() 596 ctime: PosixTimeSpec::default(), in mknod()
|
/DragonOS/kernel/src/filesystem/devpts/ |
H A D | mod.rs | 28 time::PosixTimeSpec, 109 atime: PosixTimeSpec::default(), in new() 110 mtime: PosixTimeSpec::default(), in new() 111 ctime: PosixTimeSpec::default(), in new()
|
/DragonOS/kernel/src/libs/futex/ |
H A D | syscall.rs | 6 time::PosixTimeSpec, 19 timeout: Option<PosixTimeSpec>, in do_futex() argument
|
/DragonOS/kernel/src/filesystem/kernfs/ |
H A D | mod.rs | 19 time::PosixTimeSpec, 94 atime: PosixTimeSpec::new(0, 0), in create_root_inode() 95 mtime: PosixTimeSpec::new(0, 0), in create_root_inode() 96 ctime: PosixTimeSpec::new(0, 0), in create_root_inode() 525 atime: PosixTimeSpec::new(0, 0), in inner_create() 526 mtime: PosixTimeSpec::new(0, 0), in inner_create() 527 ctime: PosixTimeSpec::new(0, 0), in inner_create()
|