Home
last modified time | relevance | path

Searched refs:bool (Results 1 – 25 of 61) sorted by relevance

123

/DragonOS-0.1.8/kernel/src/libs/
Dkeyboard_parser.rs305 let mut col: bool = false; in handle_type3()
438 shift_l: bool,
439 shift_r: bool,
441 ctrl_l: bool,
442 ctrl_r: bool,
444 alt_l: bool,
445 alt_r: bool,
447 gui_l: bool,
448 gui_r: bool,
450 apps: bool,
[all …]
Dspinlock.rs35 pub fn spin_is_locked(lock: &spinlock_t) -> bool { in spin_is_locked() argument
88 pub fn try_lock(&self) -> bool { in try_lock() argument
126 pub fn is_locked(&self) -> bool { in is_locked() argument
132 pub unsafe fn set_value(&mut self, value: bool) { in set_value() argument
152 pub fn try_lock_irqsave(&self, flags: &mut usize) -> bool { in try_lock_irqsave() argument
Dmutex.rs22 is_locked: bool,
136 fn check_pid_in_wait_list(&self, inner: &MutexInner, pid: pid_t) -> bool { in check_pid_in_wait_list() argument
/DragonOS-0.1.8/kernel/src/driver/tty/
Dmod.rs105 pub fn input(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in input()
122 pub fn output(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in output()
133 pub fn stdout(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in stdout()
144 pub fn stderr(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in stderr()
155 pub fn read_stdin(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in read_stdin()
185 fn stdin_should_return(&self, c: u8) -> bool { in stdin_should_return() argument
199 fn write_stdin(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in write_stdin()
231 fn read_output(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in read_output()
264 fn write_output(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in write_output()
309 pub fn echo_enabled(&self) -> bool { in echo_enabled() argument
/DragonOS-0.1.8/kernel/src/arch/x86_64/asm/
Dcmpxchg.rs3 fn __try_cmpxchg_q(ptr: *mut u64, old_ptr: *mut u64, new_ptr: *mut u64) -> bool; in __try_cmpxchg_q() argument
9 pub unsafe fn try_cmpxchg_q(ptr: *mut u64, old_ptr: *mut u64, new_ptr: *mut u64) -> bool { in try_cmpxchg_q() argument
Dptrace.rs6 pub fn user_mode(regs: *const pt_regs) -> bool { in user_mode() argument
/DragonOS-0.1.8/kernel/src/mm/
Dpage.rs121 pub fn entry_mapped(&self, i: usize) -> Option<bool> { in entry_mapped() argument
221 pub fn present(&self) -> bool { in present() argument
261 pub fn from_prot_flags(prot_flags: ProtFlags, user: bool) -> PageFlags<Arch> { in from_prot_flags()
291 pub fn new_page_table(user: bool) -> Self { in new_page_table()
313 pub fn update_flags(mut self, flag: usize, value: bool) -> Self { in update_flags()
324 pub fn has_flag(&self, flag: usize) -> bool { in has_flag() argument
329 pub fn present(&self) -> bool { in present() argument
338 pub fn set_user(self, value: bool) -> Self { in set_user()
344 pub fn has_user(&self) -> bool { in has_user() argument
357 pub fn set_write(self, value: bool) -> Self { in set_write()
[all …]
Dmod.rs107 pub fn check_aligned(&self, align: usize) -> bool { in check_aligned() argument
112 pub fn is_null(&self) -> bool { in is_null() argument
216 pub fn check_aligned(&self, align: usize) -> bool { in check_aligned() argument
222 pub fn check_user(&self) -> bool { in check_user() argument
236 pub fn is_null(&self) -> bool { in is_null() argument
453 fn virt_is_valid(virt: VirtAddr) -> bool; in virt_is_valid() argument
530 pub fn is_empty(&self) -> bool { in is_empty() argument
542 pub fn collide(&self, other: &VirtRegion) -> bool { in collide() argument
583 pub fn contains(&self, addr: VirtAddr) -> bool { in contains() argument
Dkernel_mapper.rs31 readonly: bool,
104 flush: bool, in map_phys_with_size() argument
/DragonOS-0.1.8/kernel/src/process/
Dpid.rs15 fn eq(&self, other: &PidType) -> bool { in eq() argument
Dprocess.rs31 pub extern "C" fn process_is_stopped(pcb: *const process_control_block) -> bool { in process_is_stopped() argument
53 ) -> bool { in process_try_to_wake_up() argument
91 pub extern "C" fn process_wake_up_state(pcb: *mut process_control_block, state: u64) -> bool { in process_wake_up_state() argument
116 pub fn process_is_executing(pcb: *const process_control_block) -> bool { in process_is_executing() argument
/DragonOS-0.1.8/kernel/src/driver/base/platform/
Dplatform_device.rs19 fn is_initialized(&self) -> bool; in is_initialized() argument
/DragonOS-0.1.8/docs/kernel/process_management/
Dkthread.md104 &emsp;&emsp;`bool kthread_should_stop(void)`
112 &emsp;&emsp;一个bool变量
/DragonOS-0.1.8/kernel/src/driver/timers/rtc/
Drtc.rs40 let is_24h: bool = if (status_register_b & 0x02) != 0 { in get()
46 let is_binary: bool = if (status_register_b & 0x04) != 0 { in get()
/DragonOS-0.1.8/kernel/src/sched/
Dsyscall.rs13 pub fn sched(from_user: bool) -> Result<usize, SystemError> { in sched()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs399 pub fn is_root(&self) -> bool { in is_root() argument
511 expect_dir: Option<bool>, in find_entry() argument
679 expect_dir: Option<bool>, in check_existence() argument
771 pub fn is_empty(&self, fs: Arc<FATFileSystem>) -> bool { in is_empty() argument
795 remove_clusters: bool, in remove() argument
919 pub fn contains(&self, attr: u8) -> bool { in contains() argument
1041 pub fn is_last(&self) -> bool { in is_last() argument
1139 pub fn is_dir(&self) -> bool { in is_dir() argument
1148 pub fn is_file(&self) -> bool { in is_file() argument
1157 pub fn is_volume_id(&self) -> bool { in is_volume_id() argument
[all …]
/DragonOS-0.1.8/kernel/src/exception/
Dmod.rs13 fn is_irq_enabled() -> bool; in is_irq_enabled()
/DragonOS-0.1.8/kernel/src/ipc/
Dsignal_types.rs127 pub fn ignored(&self, _sig: SignalNumber) -> bool { in ignored() argument
340 fn eq(&self, other: &SignalNumber) -> bool { in eq() argument
358 fn valid_signal_number(x: i32) -> bool { in valid_signal_number() argument
483 pub fn find(&self, sig: SignalNumber) -> (Option<&siginfo>, bool) { in find() argument
504 pub fn find_and_delete(&mut self, sig: SignalNumber) -> (Option<siginfo>, bool) { in find_and_delete() argument
597 pub fn sigset_equal(a: &sigset_t, b: &sigset_t) -> bool { in sigset_equal() argument
621 pub fn sig_is_member(set: &sigset_t, _sig: SignalNumber) -> bool { in sig_is_member() argument
Dsignal.rs110 fn verify_signal(sig: SignalNumber) -> bool { in verify_signal() argument
222 _force_send: bool, in __send_signal_locked() argument
310 fn wants_signal(sig: SignalNumber, pcb: &process_control_block) -> bool { in wants_signal() argument
339 fn sig_fatal(pcb: &process_control_block, sig: SignalNumber) -> bool { in sig_fatal() argument
358 fn has_sig_pending(pcb: &process_control_block) -> bool { in has_sig_pending() argument
368 fn signal_wake_up(pcb: &mut process_control_block, fatal: bool) { in signal_wake_up() argument
746 fn restore_sigcontext(context: *const sigcontext, regs: &mut pt_regs) -> bool { in restore_sigcontext() argument
767 pub fn flush_signal_handlers(pcb: *mut process_control_block, force_default: bool) { in flush_signal_handlers() argument
/DragonOS-0.1.8/kernel/src/driver/video/
Dmod.rs38 fn set_run(&self) -> bool { in set_run() argument
/DragonOS-0.1.8/kernel/src/io/
Ddevice.rs193 pub multiblock: bool, // 是否启用连续整块同时遍历
298 pub fn is_empty(&self) -> bool { in is_empty() argument
305 pub fn is_full(&self) -> bool { in is_full() argument
309 pub fn is_multi(&self) -> bool { in is_multi() argument
/DragonOS-0.1.8/kernel/src/net/
Dmod.rs159 fn poll(&self) -> (bool, bool, bool) { in poll() argument
/DragonOS-0.1.8/kernel/src/arch/x86_64/interrupt/
Dmod.rs41 fn is_irq_enabled() -> bool { in is_irq_enabled()
/DragonOS-0.1.8/kernel/src/time/
Dtimekeep.rs30 let leap: bool = (year % 4 == 0) && (year % 100 != 0) || (year % 400 == 0); in ktime_get_real()
/DragonOS-0.1.8/docs/kernel/boot/
Dmultiboot2.md22 void multiboot2_iter(bool (*_fun)(const struct iter_data_t *, void *, unsigned int *),

123