Home
last modified time | relevance | path

Searched refs:PosixTimeSpec (Results 1 – 25 of 35) sorted by relevance

12

/DragonOS/kernel/src/time/
H A Dsleep.rs16 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 Dsyscall.rs13 time::{sleep::nanosleep, PosixTimeSpec},
78 sleep_time: *const PosixTimeSpec, in nanosleep() argument
79 rm_time: *mut PosixTimeSpec, in nanosleep() argument
84 let slt_spec = PosixTimeSpec { in nanosleep()
139 pub fn clock_gettime(clock_id: c_int, tp: *mut PosixTimeSpec) -> Result<usize, SystemError> { in clock_gettime()
147 let mut tp_buf = UserBufferWriter::new::<PosixTimeSpec>( in clock_gettime()
149 core::mem::size_of::<PosixTimeSpec>(), in clock_gettime()
H A Dmod.rs54 pub struct PosixTimeSpec { struct
59 impl PosixTimeSpec { impl
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 Dtimekeep.rs9 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 Dtimekeeping.rs14 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 Dlog.rs5 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 Dresource.rs4 use crate::time::PosixTimeSpec;
12 pub ru_utime: PosixTimeSpec,
14 pub ru_stime: PosixTimeSpec,
/DragonOS/kernel/src/filesystem/devfs/
H A Dnull_dev.rs8 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 Dzero_dev.rs8 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()
/DragonOS/kernel/src/net/event_poll/
H A Dsyscall.rs12 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/driver/disk/ahci/
H A Dahci_inode.rs10 use crate::{libs::spinlock::SpinLock, time::PosixTimeSpec};
50 atime: PosixTimeSpec::default(), in new()
51 mtime: PosixTimeSpec::default(), in new()
52 ctime: PosixTimeSpec::default(), in new()
/DragonOS/kernel/src/filesystem/vfs/
H A Dopen.rs13 use crate::time::{syscall::PosixTimeval, PosixTimeSpec};
164 times: Option<[PosixTimeSpec; 2]>, in do_utimensat()
190 let now = PosixTimeSpec::now();
224 meta.atime = PosixTimeSpec::from(atime);
225 meta.mtime = PosixTimeSpec::from(mtime);
228 let now = PosixTimeSpec::now();
H A Dmod.rs24 time::PosixTimeSpec,
705 pub atime: PosixTimeSpec,
708 pub mtime: PosixTimeSpec,
711 pub ctime: PosixTimeSpec,
740 atime: PosixTimeSpec::default(), in default()
741 mtime: PosixTimeSpec::default(), in default()
742 ctime: PosixTimeSpec::default(), in default()
876 atime: PosixTimeSpec::default(), in new()
877 mtime: PosixTimeSpec::default(), in new()
878 ctime: PosixTimeSpec::default(), in new()
/DragonOS/kernel/src/virt/kvm/
H A Dkvm_dev.rs11 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 Dvcpu_dev.rs15 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 Dvm_dev.rs17 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 Dmod.rs8 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 Dclass.rs17 time::{timekeeping::do_settimeofday64, PosixTimeSpec},
100 let timespec64: PosixTimeSpec = time.into(); in rtc_hctosys()
/DragonOS/kernel/src/ipc/
H A Dshm.rs15 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/libs/
H A Dprintk.rs20 time::PosixTimeSpec,
81 let timestamp: PosixTimeSpec = PosixTimeSpec::now_cpu_time(); in log()
/DragonOS/kernel/src/driver/keyboard/
H A Dps2_keyboard.rs35 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 Dmod.rs12 time::PosixTimeSpec,
119 atime: PosixTimeSpec::default(), in new()
120 mtime: PosixTimeSpec::default(), in new()
121 ctime: PosixTimeSpec::default(), in new()
321 atime: PosixTimeSpec::default(), in create_with_data()
322 mtime: PosixTimeSpec::default(), in create_with_data()
323 ctime: PosixTimeSpec::default(), in create_with_data()
583 atime: PosixTimeSpec::default(), in mknod()
584 mtime: PosixTimeSpec::default(), in mknod()
585 ctime: PosixTimeSpec::default(), in mknod()
/DragonOS/kernel/src/filesystem/devpts/
H A Dmod.rs28 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 Dsyscall.rs6 time::PosixTimeSpec,
19 timeout: Option<PosixTimeSpec>, in do_futex() argument
/DragonOS/kernel/src/filesystem/kernfs/
H A Dmod.rs19 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()

12