/DragonOS/user/apps/test_socket/src/ |
H A D | test_unix_stream.rs | 20 fs::remove_file(&SOCKET_PATH).ok(); in test_unix_stream() 33 client_thread.join().ok(); in test_unix_stream() 35 fs::remove_file(&SOCKET_PATH).ok(); in test_unix_stream()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | utils.rs | 10 kobj.arc_any().cast::<dyn RtcDevice>().ok() in kobj2rtc_device() 15 kobj.arc_any().downcast().ok() in kobj2rtc_general_device()
|
/DragonOS/kernel/src/net/ |
H A D | net_core.rs | 31 poll_ifaces_try_lock(10).ok(); in run() 71 net_face.poll(&mut SOCKET_SET.lock_irqsave()).ok(); in dhcp_query() 85 .ok(); in dhcp_query() 117 .ok(); in dhcp_query() 146 iface.poll(&mut sockets).ok(); in poll_ifaces() 175 iface.poll(&mut sockets).ok(); in poll_ifaces_try_lock() 198 iface.poll(&mut sockets).ok(); in poll_ifaces_try_lock_onetime()
|
/DragonOS/kernel/src/init/ |
H A D | initial_kthread.rs | 42 .ok(); in kernel_init() 100 let mut ok = false; in switch_to_user() localVariable 103 ok = true; in switch_to_user() 107 if !ok { in switch_to_user()
|
H A D | init.rs | 115 .ok(); in init_before_mem_init()
|
/DragonOS/kernel/src/arch/x86_64/driver/apic/ |
H A D | mod.rs | 145 .set_delivery_mode(DeliveryMode::try_from(((data >> 8) & 0b111) as u8).ok()?) in new() 146 .ok()?; in new() 154 result.set_trigger_mode(TriggerMode::Level).ok()?; in new() 156 result.set_trigger_mode(TriggerMode::Edge).ok()?; in new() 163 .set_timer_mode(LocalApicTimerMode::try_from(((data >> 17) & 0b11) as u8).ok()?) in new() 164 .ok()?; in new() 218 return DeliveryMode::try_from(((self.data >> 8) & 0b111) as u8).ok(); in delivery_mode()
|
H A D | ioapic.rs | 504 chip_data_inner.sync_to_chip().ok(); in irq_mask() 586 self.irq_mask(irq).ok(); in irq_mask_ack() 648 chip_data_inner.sync_to_chip().ok(); in irq_disable()
|
/DragonOS/kernel/src/filesystem/sysfs/ |
H A D | group.rs | 46 self.remove_group(kobj, groups[j]).ok(); in do_create_groups() 114 self.remove_group(kobj, *group).ok(); in remove_groups() 180 parent.remove(attr.name()).ok(); in group_create_files()
|
/DragonOS/kernel/src/driver/net/ |
H A D | irq_handle.rs | 24 poll_ifaces_try_lock_onetime().ok(); in handle()
|
/DragonOS/kernel/src/driver/virtio/ |
H A D | mmio.rs | 28 do_check(node).ok(); in do_probe_virtio_mmio()
|
/DragonOS/kernel/src/libs/ |
H A D | mutex.rs | 108 ProcessManager::mark_sleep(true).ok(); in __sleep() 130 ProcessManager::wakeup(&to_wakeup).ok(); in unlock()
|
H A D | once.rs | 111 .ok(); in call_once_force()
|
/DragonOS/kernel/src/exception/ |
H A D | manage.rs | 176 KernelThreadMechanism::stop(&thread_pcb).ok(); in inner_setup_irq() 183 KernelThreadMechanism::stop(&thread_pcb).ok(); in inner_setup_irq() 533 .ok(); in inner_setup_irq() 571 self.do_enable_irq(desc.clone(), &mut desc_inner_guard).ok(); in inner_setup_irq() 610 ProcessManager::wakeup(&action_guard.thread().unwrap()).ok(); in wake_up_and_wait_for_irq_thread_ready() 623 .ok(); in wake_up_and_wait_for_irq_thread_ready() 684 self.irq_setup_affinity(desc, desc_inner_guard).ok(); in irq_startup() 695 self.irq_setup_affinity(desc, desc_inner_guard).ok(); in irq_startup() 700 .ok(); in irq_startup()
|
/DragonOS/kernel/src/arch/riscv64/interrupt/ |
H A D | ipi.rs | 14 IpiKind::FlushTLB => RiscV64MMArch::remote_invalidate_all_with_mask(mask).ok(), in send_ipi()
|
H A D | handle.rs | 54 handler(trap_frame).ok(); in riscv64_do_exception()
|
/DragonOS/tools/debugging/logmonitor/src/ |
H A D | logging.rs | 49 self.sender.send(message).ok(); in log()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | kthread.rs | 70 KEYBUF.push(*item).ok(); in send_to_tty_refresh_thread()
|
/DragonOS/kernel/src/driver/irqchip/ |
H A D | riscv_intc.rs | 207 .ok(); in riscv_intc_assicate_irq() 224 .ok(); in riscv_intc_irq()
|
H A D | riscv_sifive_plic.rs | 384 self.irq_enable(irq_data).ok(); in irq_set_affinity() 540 associate_irq_with_plic_domain(&irq_domain, phandle as u32).ok(); in do_riscv_sifive_plic_init() 567 .ok(); in associate_irq_with_plic_domain()
|
/DragonOS/kernel/src/time/ |
H A D | timer.rs | 101 ProcessManager::wakeup(&self.pcb).ok(); in run() 306 ProcessManager::mark_sleep(true).ok(); in schedule_timeout() 322 ProcessManager::mark_sleep(true).ok(); in schedule_timeout()
|
H A D | sleep.rs | 50 ProcessManager::mark_sleep(true).ok(); in nanosleep()
|
/DragonOS/kernel/src/driver/input/ps2_mouse/ |
H A D | ps_mouse_device.rs | 224 self.read_data_port().ok(); in init() 231 self.read_data_port().ok(); in init() 240 self.read_data_port().ok(); in init() 269 self.read_data_port().ok(); in set_sample_rate() 282 self.read_data_port().ok(); in set_sample_rate()
|
/DragonOS/tools/debugging/logmonitor/src/backend/monitor/ |
H A D | logset.rs | 54 .map(|f| writeln!(f, "{:?}", cloned_value).ok()); in insert()
|
/DragonOS/kernel/src/arch/x86_64/interrupt/ |
H A D | ipi.rs | 253 KickCpuIpiHandler.handle(irq, None, None).ok(); in handle() 256 FlushTLBIpiHandler.handle(irq, None, None).ok(); in handle()
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | bus.rs | 330 .ok(); in add_driver() 342 .ok(); in add_driver() 460 device_manager().device_initial_probe(dev).ok(); in probe_device() 463 interface.add_device(dev).ok(); in probe_device()
|