Home
last modified time | relevance | path

Searched refs:ok (Results 1 – 25 of 55) sorted by relevance

123

/DragonOS/user/apps/test_socket/src/
H A Dtest_unix_stream.rs20 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 Dutils.rs10 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 Dnet_core.rs31 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 Dinitial_kthread.rs42 .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 Dinit.rs115 .ok(); in init_before_mem_init()
/DragonOS/kernel/src/arch/x86_64/driver/apic/
H A Dmod.rs145 .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 Dioapic.rs504 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 Dgroup.rs46 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 Dirq_handle.rs24 poll_ifaces_try_lock_onetime().ok(); in handle()
/DragonOS/kernel/src/driver/virtio/
H A Dmmio.rs28 do_check(node).ok(); in do_probe_virtio_mmio()
/DragonOS/kernel/src/libs/
H A Dmutex.rs108 ProcessManager::mark_sleep(true).ok(); in __sleep()
130 ProcessManager::wakeup(&to_wakeup).ok(); in unlock()
H A Donce.rs111 .ok(); in call_once_force()
/DragonOS/kernel/src/exception/
H A Dmanage.rs176 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 Dipi.rs14 IpiKind::FlushTLB => RiscV64MMArch::remote_invalidate_all_with_mask(mask).ok(), in send_ipi()
H A Dhandle.rs54 handler(trap_frame).ok(); in riscv64_do_exception()
/DragonOS/tools/debugging/logmonitor/src/
H A Dlogging.rs49 self.sender.send(message).ok(); in log()
/DragonOS/kernel/src/driver/tty/
H A Dkthread.rs70 KEYBUF.push(*item).ok(); in send_to_tty_refresh_thread()
/DragonOS/kernel/src/driver/irqchip/
H A Driscv_intc.rs207 .ok(); in riscv_intc_assicate_irq()
224 .ok(); in riscv_intc_irq()
H A Driscv_sifive_plic.rs384 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 Dtimer.rs101 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 Dsleep.rs50 ProcessManager::mark_sleep(true).ok(); in nanosleep()
/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_device.rs224 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 Dlogset.rs54 .map(|f| writeln!(f, "{:?}", cloned_value).ok()); in insert()
/DragonOS/kernel/src/arch/x86_64/interrupt/
H A Dipi.rs253 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 Dbus.rs330 .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()

123