Home
last modified time | relevance | path

Searched refs:i32 (Results 1 – 12 of 12) sorted by relevance

/DragonOS-0.1.3/kernel/src/driver/timers/rtc/
Drtc.rs7 pub second: i32,
8 pub minute: i32,
9 pub hour: i32,
10 pub day: i32,
11 pub month: i32,
12 pub year: i32,
33 pub fn get(&mut self) -> Result<i32, i32> { in get() argument
51 self.year = read_cmos(CMOSTimeSelector::Year as u8) as i32; in get()
52 self.month = read_cmos(CMOSTimeSelector::Month as u8) as i32; in get()
53 self.day = read_cmos(CMOSTimeSelector::Day as u8) as i32; in get()
[all …]
/DragonOS-0.1.3/kernel/src/libs/
Dlockref.rs15 pub count: i32,
22 count: i32,
53 fn cmpxchg_loop(&mut self, mode: CmpxchgMode) -> Result<i32, i32> { in cmpxchg_loop() argument
117 return Err(-(ETIMEDOUT as i32)); in cmpxchg_loop()
123 fn cmpxchg_loop(&mut self, mode: CmpxchgMode) -> Result<i32, i32> { in cmpxchg_loop() argument
126 return Err(-(ENOTSUP as i32)); in cmpxchg_loop()
147 pub fn inc_not_zero(&mut self) -> Result<i32, i32> { in inc_not_zero() argument
176 pub fn inc_not_dead(&mut self) -> Result<i32, i32> { in inc_not_dead() argument
206 pub fn dec(&mut self) -> Result<i32, i32> { in dec() argument
213 let retval: Result<i32, i32>; in dec()
[all …]
/DragonOS-0.1.3/docs/kernel/locking/
Dlockref.md19 pub count: i32,
26 count: i32,
62 - `pub fn inc_not_zero(&mut self) -> Result<i32, i32>`
63 - `pub fn inc_not_dead(&mut self) -> Result<i32, i32>`
102 - `pub fn dec(&mut self) -> Result<i32, i32>`
103 - `pub fn dec_return(&mut self) -> Result<i32, i32>`
104 - `pub fn dec_not_zero(&mut self) -> Result<i32, i32>`
105 - `pub fn dec_or_lock_not_zero(&mut self) -> Result<i32, i32>`
/DragonOS-0.1.3/kernel/src/ipc/
Dsignal_types.rs30 pub const MAX_SIG_NUM: i32 = 64;
32 pub const _NSIG_U64_CNT: i32 = MAX_SIG_NUM / 64;
166 pub si_signo: i32,
167 pub si_code: i32,
168 pub si_errno: i32,
193 pub fn new(sig: SignalNumber, _si_errno: i32, _si_code: si_code_val) -> Self { in new() argument
197 si_signo: sig as i32, in new()
198 si_code: _si_code as i32, in new()
259 #[repr(i32)]
280 pub fn from_i32(x: i32) -> si_code_val { in from_i32()
[all …]
Dsignal.rs66 let sig: SignalNumber = SignalNumber::from(regs.r9 as i32); in sys_kill()
78 si_signo: sig as i32, in sys_kill()
79 si_code: si_code_val::SI_USER as i32, in sys_kill()
110 ) -> Result<i32, i32> { in signal_kill_something_info() argument
114 return Err(-(ENOTSUP as i32)); in signal_kill_something_info()
125 ) -> Result<i32, i32> { in signal_kill_proc_info() argument
126 let mut retval = Err(-(ESRCH as i32)); in signal_kill_proc_info()
150 return if (sig as i32) <= MAX_SIG_NUM { in verify_signal()
165 ) -> Result<i32, i32> { in signal_send_sig_info() argument
169 return Err(-(EINVAL as i32)); in signal_send_sig_info()
[all …]
/DragonOS-0.1.3/kernel/src/arch/x86_64/asm/
Dbitops.rs9 pub fn ffz(x: u64) -> i32 { in ffz() argument
/DragonOS-0.1.3/kernel/src/driver/uart/
Duart.rs4 const UART_SUCCESS: i32 = 0;
5 const E_UART_BITS_RATE_ERROR: i32 = 1;
6 const E_UART_SERIAL_FAULT: i32 = 2;
92 pub fn uart_init(uart_port: &UartPort, baud_rate: u32) -> Result<i32, &'static str> { in uart_init() argument
215 pub extern "C" fn c_uart_init(port: u16, baud_rate: u32) -> i32 { in c_uart_init() argument
/DragonOS-0.1.3/kernel/src/process/
Dfork.rs23 pub extern "C" fn process_copy_sighand(clone_flags: u64, pcb: *mut process_control_block) -> i32 { in process_copy_sighand() argument
34 return -(ENOMEM as i32); in process_copy_sighand()
82 pub extern "C" fn process_copy_signal(clone_flags: u64, pcb: *mut process_control_block) -> i32 { in process_copy_signal() argument
90 return -(ENOMEM as i32); in process_copy_signal()
Dprocess.rs37 _wake_flags: i32, in process_try_to_wake_up() argument
/DragonOS-0.1.3/kernel/src/exception/
Dsoftirq.rs193 ) -> i32 { in register_softirq() argument
195 return -(EEXIST as i32); in register_softirq()
199 return -(EPERM as i32); in register_softirq()
210 pub fn unregister_softirq(&mut self, irq_num: u32) -> i32 { in unregister_softirq() argument
225 return -(EBUSY as i32); in unregister_softirq()
/DragonOS-0.1.3/kernel/src/time/
Dtimekeep.rs28 let mut day_count: i32 = 0; in ktime_get_real()
/DragonOS-0.1.3/kernel/src/
Dlib.rs85 pub extern "C" fn __rust_demo_func() -> i32 { in __rust_demo_func()