Home
last modified time | relevance | path

Searched refs:i64 (Results 1 – 25 of 26) sorted by relevance

12

/DragonOS-0.1.7/kernel/src/time/
Dtimekeep.rs6 pub type ktime_t = i64;
10 fn ktime_to_ns(kt: ktime_t) -> i64 { in ktime_to_ns() argument
11 return kt as i64; in ktime_to_ns()
48 let timestamp: ktime_t = day_count as i64 * 86_400_000_000_000i64 in ktime_get_real()
49 + (rtc_time.hour - 8) as i64 * 3_600_000_000_000i64 in ktime_get_real()
50 + rtc_time.minute as i64 * 60_000_000_000i64 in ktime_get_real()
51 + rtc_time.second as i64 * 1_000_000_000u64 as ktime_t; in ktime_get_real()
58 pub fn ktime_get_real_ns() -> i64 { in ktime_get_real_ns()
Dmod.rs24 pub tv_sec: i64,
25 pub tv_nsec: i64,
30 pub fn new(sec: i64, nsec: i64) -> TimeSpec { in new() argument
50 micros: i64,
58 pub fn from_micros<T: Into<i64>>(micros: T) -> Instant { in from_micros()
64 pub const fn from_micros_const(micros: i64) -> Instant { in from_micros_const()
69 pub fn from_millis<T: Into<i64>>(millis: T) -> Instant { in from_millis()
76 pub const fn from_millis_const(millis: i64) -> Instant { in from_millis_const()
83 pub fn from_secs<T: Into<i64>>(secs: T) -> Instant { in from_secs()
96 pub const fn millis(&self) -> i64 { in millis() argument
[all …]
Dtimer.rs22 const MAX_TIMEOUT: i64 = i64::MAX;
222 pub fn schedule_timeout(mut timeout: i64) -> Result<i64, SystemError> { in schedule_timeout() argument
233 timeout += unsafe { TIMER_JIFFIES } as i64; in schedule_timeout()
240 let time_remaining: i64 = timeout - unsafe { TIMER_JIFFIES } as i64; in schedule_timeout()
291 pub extern "C" fn rs_schedule_timeout(timeout: i64) -> i64 { in rs_schedule_timeout() argument
298 return e.to_posix_errno() as i64; in rs_schedule_timeout()
319 pub extern "C" fn rs_timer_get_first_expire() -> i64 { in rs_timer_get_first_expire()
321 Ok(v) => return v as i64, in rs_timer_get_first_expire()
Dsleep.rs128 tv_sec: (usec / 1000000) as i64, in rs_usleep()
129 tv_nsec: ((usec % 1000000) * 1000) as i64, in rs_usleep()
/DragonOS-0.1.7/kernel/src/io/
Dmod.rs8 SeekSet(i64),
9 SeekCurrent(i64),
10 SeekEnd(i64),
/DragonOS-0.1.7/kernel/src/libs/
Datomic.rs8 pub fn atomic_read(ato: *const atomic_t) -> i64 { in atomic_read() argument
16 pub fn atomic_set(ato: *mut atomic_t, value: i64) { in atomic_set() argument
Dvec_cursor.rs132 let pos: i64; in seek()
138 pos = self.pos as i64 + offset; in seek()
142 pos = self.data.len() as i64 + offset; in seek()
149 if pos < 0 || pos > self.data.len() as i64 { in seek()
/DragonOS-0.1.7/docs/kernel/sched/
Dkernel_timer.md58 pub fn schedule_timeout(mut timeout: i64) -> Result<i64, SystemError>
71 - Ok(i64):剩余需要休眠的时间 (单位:**jiffies**)
86 - Ok(i64):最早结束的定时器的结束时间 (单位:**jiffies**)
/DragonOS-0.1.7/kernel/src/net/
Dsyscall.rs43 ) -> Result<i64, SystemError> { in do_socket() argument
71 let fd = current_pcb().alloc_fd(f, None).map(|x| x as i64); in do_socket()
101 ) -> Result<i64, SystemError> { in do_setsockopt() argument
144 ) -> Result<i64, SystemError> { in do_getsockopt() argument
230 pub fn do_connect(fd: usize, addr: *const SockAddr, addrlen: usize) -> Result<i64, SystemError> { in do_connect() argument
258 pub fn do_bind(fd: usize, addr: *const SockAddr, addrlen: usize) -> Result<i64, SystemError> { in do_bind() argument
305 ) -> Result<i64, SystemError> { in do_sendto() argument
320 return socket.write(buf, endpoint).map(|n| n as i64); in do_sendto()
360 ) -> Result<i64, SystemError> { in do_recvfrom() argument
391 return Ok(n as i64); in do_recvfrom()
[all …]
/DragonOS-0.1.7/kernel/src/sched/
Dcfs.rs41 cpu_exec_proc_jiffies: i64,
45 queue: RBTree<i64, &'static mut process_control_block>,
95 pub fn min_vruntime(&self) -> Option<i64> { in min_vruntime() argument
135 fn update_cpu_exec_proc_jiffies(_priority: i64, cfs_queue: &mut CFSQueue) -> &mut CFSQueue { in update_cpu_exec_proc_jiffies() argument
Drt.rs106 const RR_TIMESLICE: i64 = 100;
107 const MAX_RT_PRIO: i64 = 100;
/DragonOS-0.1.7/kernel/src/ipc/
Dsyscall.rs19 pub fn do_pipe(fd: *mut i32) -> Result<i64, SystemError> { in do_pipe() argument
Dpipe.rs145 metadata.size = inode.data.len() as i64; in metadata()
Dsignal_types.rs190 pub _pid: i64, /* 发起kill的进程的pid */
/DragonOS-0.1.7/kernel/src/filesystem/fat/
Dfs.rs112 self.metadata.size = f.size() as i64; in update_metadata()
115 self.metadata.size = d.size(&self.fs.upgrade().unwrap().clone()) as i64; in update_metadata()
377 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_fat_entry()
471 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_fat_entry_raw()
937 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in get_free_cluster()
985 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in get_free_cluster()
1017 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in get_free_cluster()
1064 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
1074 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
1097 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
[all …]
Dentry.rs1091 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in flush()
1305 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in flush()
2364 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_raw_dir_entry()
2380 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_raw_dir_entry()
/DragonOS-0.1.7/kernel/src/driver/keyboard/
Dps2_keyboard.rs106 len as i64, in read_at()
107 0 as *mut i64, in read_at()
/DragonOS-0.1.7/kernel/src/filesystem/procfs/
Dmod.rs54 pid: i64,
116 fn open_status(&self, pdata: &mut ProcfsFilePrivateData) -> Result<i64, SystemError> { in open_status() argument
118 let pid: &i64 = &self.fdata.pid; in open_status()
190 return Ok((pdata.len() * size_of::<u8>()) as i64); in open_status()
280 pub fn register_pid(&self, pid: i64) -> Result<(), SystemError> { in register_pid()
302 pub fn unregister_pid(&self, pid: i64) -> Result<(), SystemError> { in unregister_pid()
/DragonOS-0.1.7/kernel/src/filesystem/vfs/
Dfile.rs179 let pos: i64; in lseek()
185 pos = self.offset as i64 + offset; in lseek()
Dmod.rs455 pub size: i64,
543 d_off: i64, // dir偏移量
Dsyscall.rs129 let offset = regs.r9 as i64; in sys_lseek()
229 let count = regs.r10 as i64; in sys_getdents()
/DragonOS-0.1.7/docs/kernel/memory_management/
Dmmio.md143 num_free: i64,
/DragonOS-0.1.7/kernel/src/mm/
Dmmio_buddy.rs636 num_free: i64,
659 let cnt_1g_blocks: u32 = ((MMIO_TOP - MMIO_BASE) / PAGE_1G_SIZE as i64) as u32; in __mmio_buddy_init()
/DragonOS-0.1.7/kernel/src/driver/tty/
Dtty_device.rs271 metadata.size = TtyCore::STDIN_BUF_SIZE as i64; in new()
/DragonOS-0.1.7/kernel/src/filesystem/ramfs/
Dmod.rs203 metadata.size = inode.data.len() as i64; in metadata()

12