Searched refs:second (Results 1 – 6 of 6) sorted by relevance
/DragonOS/kernel/src/process/ |
H A D | timer.rs | 36 pub fn new(timer_func: Box<dyn TimerFunction>, second: u64) -> Self { in new() 38 <Jiffies as From<Duration>>::from(Duration::from_secs(second)).timer_jiffies(); in new() 41 expired_second: second, in new() 64 pub fn alarm_timer_init(pid: Pid, second: u64) -> AlarmTimer { in alarm_timer_init() 67 let alarmtimer = AlarmTimer::new(timerfunc, second); in alarm_timer_init()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | mod.rs | 59 pub second: i32, field 95 format!("{:02}:{:02}:{:02}", self.hour, self.minute, self.second) in time_string() 109 || self.second >= 60 in valid() 110 || self.second < 0) in valid() 149 val.second as u32, in from()
|
/DragonOS/kernel/src/time/ |
H A D | syscall.rs | 170 let second = Duration::from_secs(expired_second as u64); in alarm() localVariable 186 if second.is_zero() { in alarm() 193 let new_alarm = Some(AlarmTimer::alarm_timer_init(pid, second.as_secs())); in alarm()
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | rtc.rs | 262 res.second = dev.read_cmos(CMOSTimeSelector::Second as u8) as i32; in read_time() 264 if res.second == dev.read_cmos(CMOSTimeSelector::Second as u8) as i32 { in read_time() 276 res.second = (res.second & 0xf) + (res.second >> 4) * 10; in read_time()
|
/DragonOS/kernel/src/mm/allocator/ |
H A D | buddy.rs | 551 let (paddr, mut page_list) = if let Some(second) = second_page_list { in buddy_free() 554 assert!(second.entry_num == Self::BUDDY_ENTRIES - 1); in buddy_free() 556 (first_page_list.next_page, second) in buddy_free()
|
/DragonOS/kernel/src/syscall/ |
H A D | mod.rs | 1138 let second = args[0] as u32; in handle() localVariable 1139 Self::alarm(second) in handle()
|