/DragonOS-0.1.9/kernel/src/time/ |
D | sleep.rs | 16 TimeArch, TimeSpec, 26 pub fn nanosleep(sleep_time: TimeSpec) -> Result<TimeSpec, SystemError> { in nanosleep() argument 39 return Ok(TimeSpec { in nanosleep() 64 let rm_time: TimeSpec = (sleep_time - real_sleep_time.into()).into(); in nanosleep() 76 pub fn usleep(sleep_time: TimeSpec) -> Result<TimeSpec, SystemError> { in usleep() argument 94 let sleep_time = TimeSpec { in rs_usleep()
|
D | syscall.rs | 8 time::{sleep::nanosleep, TimeSpec}, 73 sleep_time: *const TimeSpec, in nanosleep() argument 74 rm_time: *mut TimeSpec, in nanosleep() argument 79 let slt_spec = TimeSpec { in nanosleep() 134 pub fn clock_gettime(clock_id: c_int, tp: *mut TimeSpec) -> Result<usize, SystemError> { in clock_gettime() 143 UserBufferWriter::new::<TimeSpec>(tp, core::mem::size_of::<TimeSpec>(), true)?; in clock_gettime()
|
D | timekeeping.rs | 12 TimeSpec, 63 raw_time: TimeSpec, 64 wall_to_monotonic: TimeSpec, 65 total_sleep_time: TimeSpec, 66 xtime: TimeSpec, 81 xtime: TimeSpec { in new() 85 wall_to_monotonic: TimeSpec { in new() 89 total_sleep_time: TimeSpec { in new() 93 raw_time: TimeSpec { in new() 163 pub fn getnstimeofday() -> TimeSpec { in getnstimeofday() [all …]
|
D | mod.rs | 48 pub struct TimeSpec { struct 53 impl TimeSpec { argument 55 pub fn new(sec: i64, nsec: i64) -> TimeSpec { in new() argument 56 return TimeSpec { in new() 69 return TimeSpec::default(); in now() 79 return TimeSpec::new(0, 0); in now() 84 impl Sub for TimeSpec { implementation 93 impl From<Duration> for TimeSpec { implementation 95 TimeSpec { in from() 102 impl From<TimeSpec> for Duration { [all …]
|
/DragonOS-0.1.9/kernel/src/filesystem/procfs/ |
D | log.rs | 5 use crate::time::TimeSpec; 61 timestamp: TimeSpec, 71 pub fn new(timestamp: TimeSpec, level: LogLevel, message: String) -> Self { in new() argument
|
D | mod.rs | 27 time::TimeSpec, 301 atime: TimeSpec::default(), in new() 302 mtime: TimeSpec::default(), in new() 303 ctime: TimeSpec::default(), in new() 576 atime: TimeSpec::default(), in create_with_data() 577 mtime: TimeSpec::default(), in create_with_data() 578 ctime: TimeSpec::default(), in create_with_data()
|
/DragonOS-0.1.9/kernel/src/filesystem/vfs/ |
D | mod.rs | 20 time::TimeSpec, 523 pub atime: TimeSpec, 526 pub mtime: TimeSpec, 529 pub ctime: TimeSpec, 558 atime: TimeSpec::default(), in default() 559 mtime: TimeSpec::default(), in default() 560 ctime: TimeSpec::default(), in default() 617 atime: TimeSpec::default(), in new() 618 mtime: TimeSpec::default(), in new() 619 ctime: TimeSpec::default(), in new()
|
D | syscall.rs | 21 time::TimeSpec, 112 atime: TimeSpec, 114 mtime: TimeSpec, 116 ctime: TimeSpec, 131 atime: TimeSpec { in new() 135 mtime: TimeSpec { in new() 139 ctime: TimeSpec { in new()
|
/DragonOS-0.1.9/kernel/src/process/ |
D | resource.rs | 4 use crate::time::TimeSpec; 12 pub ru_utime: TimeSpec, 14 pub ru_stime: TimeSpec,
|
/DragonOS-0.1.9/kernel/src/filesystem/devfs/ |
D | null_dev.rs | 7 use crate::{libs::spinlock::SpinLock, time::TimeSpec}; 44 atime: TimeSpec::default(), in new() 45 mtime: TimeSpec::default(), in new() 46 ctime: TimeSpec::default(), in new()
|
D | zero_dev.rs | 7 use crate::{libs::spinlock::SpinLock, time::TimeSpec}; 44 atime: TimeSpec::default(), in new() 45 mtime: TimeSpec::default(), in new() 46 ctime: TimeSpec::default(), in new()
|
D | mod.rs | 18 time::TimeSpec, 255 atime: TimeSpec::default(), in new_with_parent() 256 mtime: TimeSpec::default(), in new_with_parent() 257 ctime: TimeSpec::default(), in new_with_parent() 345 atime: TimeSpec::default(), in do_create_with_data() 346 mtime: TimeSpec::default(), in do_create_with_data() 347 ctime: TimeSpec::default(), in do_create_with_data()
|
/DragonOS-0.1.9/kernel/src/net/event_poll/ |
D | syscall.rs | 12 time::TimeSpec, 45 timespec = Some(TimeSpec::new(0, 0)); in epoll_wait() 52 timespec = Some(TimeSpec::new(sec, nsec)) in epoll_wait()
|
/DragonOS-0.1.9/kernel/src/driver/disk/ahci/ |
D | ahci_inode.rs | 9 use crate::{libs::spinlock::SpinLock, time::TimeSpec}; 49 atime: TimeSpec::default(), in new() 50 mtime: TimeSpec::default(), in new() 51 ctime: TimeSpec::default(), in new()
|
/DragonOS-0.1.9/kernel/src/virt/kvm/ |
D | kvm_dev.rs | 9 use crate::{arch::KVMArch, libs::spinlock::SpinLock, time::TimeSpec}; 61 atime: TimeSpec::default(), in new() 62 mtime: TimeSpec::default(), in new() 63 ctime: TimeSpec::default(), in new()
|
D | vcpu_dev.rs | 14 use crate::{libs::spinlock::SpinLock, time::TimeSpec}; 72 atime: TimeSpec::default(), in new() 73 mtime: TimeSpec::default(), in new() 74 ctime: TimeSpec::default(), in new()
|
D | vm_dev.rs | 15 use crate::{arch::KVMArch, libs::spinlock::SpinLock, time::TimeSpec}; 70 atime: TimeSpec::default(), in new() 71 mtime: TimeSpec::default(), in new() 72 ctime: TimeSpec::default(), in new()
|
/DragonOS-0.1.9/kernel/src/filesystem/ramfs/ |
D | mod.rs | 17 time::TimeSpec, 95 atime: TimeSpec::default(), in new() 96 mtime: TimeSpec::default(), in new() 97 ctime: TimeSpec::default(), in new() 282 atime: TimeSpec::default(), in create_with_data() 283 mtime: TimeSpec::default(), in create_with_data() 284 ctime: TimeSpec::default(), in create_with_data() 503 atime: TimeSpec::default(), in mknod() 504 mtime: TimeSpec::default(), in mknod() 505 ctime: TimeSpec::default(), in mknod()
|
/DragonOS-0.1.9/kernel/src/libs/futex/ |
D | syscall.rs | 3 use crate::{mm::VirtAddr, syscall::Syscall, time::TimeSpec}; 12 timeout: Option<TimeSpec>, in do_futex() argument
|
/DragonOS-0.1.9/kernel/src/libs/ |
D | printk.rs | 19 time::TimeSpec, 124 let timestamp: TimeSpec = TimeSpec::now(); in log()
|
/DragonOS-0.1.9/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 31 time::TimeSpec, 82 atime: TimeSpec::default(), in new() 83 mtime: TimeSpec::default(), in new() 84 ctime: TimeSpec::default(), in new()
|
/DragonOS-0.1.9/kernel/src/filesystem/kernfs/ |
D | mod.rs | 18 time::TimeSpec, 81 atime: TimeSpec::new(0, 0), in create_root_inode() 82 mtime: TimeSpec::new(0, 0), in create_root_inode() 83 ctime: TimeSpec::new(0, 0), in create_root_inode() 509 atime: TimeSpec::new(0, 0), in inner_create() 510 mtime: TimeSpec::new(0, 0), in inner_create() 511 ctime: TimeSpec::new(0, 0), in inner_create()
|
/DragonOS-0.1.9/kernel/src/ipc/ |
D | pipe.rs | 11 time::TimeSpec, 120 atime: TimeSpec::default(), in new() 121 mtime: TimeSpec::default(), in new() 122 ctime: TimeSpec::default(), in new()
|
/DragonOS-0.1.9/kernel/src/syscall/ |
D | mod.rs | 40 TimeSpec, 342 let req = args[0] as *const TimeSpec; in handle() constant 343 let rem = args[1] as *mut TimeSpec; in handle() 347 && (verify_area(virt_req, core::mem::size_of::<TimeSpec>() as usize).is_err() in handle() 348 || verify_area(virt_rem, core::mem::size_of::<TimeSpec>() as usize) in handle() 744 utime as *const TimeSpec, in handle() constant 745 core::mem::size_of::<TimeSpec>(), in handle() 749 timespec = Some(*reader.read_one_from_user::<TimeSpec>(0)?); in handle() 972 let timespec = args[1] as *mut TimeSpec; in handle()
|
/DragonOS-0.1.9/kernel/src/driver/input/ps2_mouse/ |
D | ps_mouse_device.rs | 41 time::TimeSpec, 202 atime: TimeSpec::default(), in new() 203 mtime: TimeSpec::default(), in new() 204 ctime: TimeSpec::default(), in new()
|