Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 47) sorted by relevance

12

/DragonOS/user/apps/test_sqlite3/
H A Dmain.c71 int ret = sqlite3_open(":memory:", &db); in memory() local
72 printf("sqlite open memory status %d \n", ret); in memory()
80 int ret = sqlite3_open("file.sqlite", &db); in file() local
81 printf("sqlite open /file.sqlite status %d \n", ret); in file()
83 if (ret != 0) { in file()
/DragonOS/kernel/src/mm/
H A Dfault.rs200 let mut ret = VmFaultReason::VM_FAULT_COMPLETED; in handle_pte_fault() localVariable
206 ret = Self::do_swap_page(pfm); in handle_pte_fault()
210 ret = Self::do_numa_page(pfm); in handle_pte_fault()
215 ret = Self::do_wp_page(pfm); in handle_pte_fault()
221 ret = Self::do_anonymous_page(pfm); in handle_pte_fault()
223 ret = Self::do_fault(pfm); in handle_pte_fault()
228 return ret; in handle_pte_fault()
297 let mut ret = Self::filemap_fault(pfm); in do_cow_fault() localVariable
299 if unlikely(ret.intersects( in do_cow_fault()
305 return ret; in do_cow_fault()
[all …]
H A Dmmio_buddy.rs237 Ok(ret) => return Ok(ret), in query_addr_region()
288 Ok(ret) => return Ok(ret), in query_addr_region()
295 Ok(ret) => return Ok(ret), in query_addr_region()
311 Ok(ret) => return Ok(ret), in mmio_buddy_query_addr_region()
/DragonOS/kernel/src/exception/
H A Dresend.rs55 let mut ret = Ok(()); in irq_check_and_resend() localVariable
58 ret = Err(SystemError::EINVAL); in irq_check_and_resend()
61 if ret.is_ok() { in irq_check_and_resend()
67 return ret; in irq_check_and_resend()
H A Dmanage.rs668 let mut ret = Ok(()); in irq_startup() localVariable
687 ret = self.__irq_startup(desc_inner_guard); in irq_startup()
701 ret = self.__irq_startup(desc_inner_guard); in irq_startup()
722 return ret; in irq_startup()
818 let mut ret = Ok(()); in irq_do_set_affinity() localVariable
831 ret = Err(r.unwrap_err()); in irq_do_set_affinity()
834 return ret; in irq_do_set_affinity()
955 let ret; in do_set_irq_trigger() localVariable
982 ret = Ok(()); in do_set_irq_trigger()
992 ret = Err(r.unwrap_err()); in do_set_irq_trigger()
[all …]
/DragonOS/user/apps/test-for-robustfutex/src/
H A Dmain.rs125 let ret = unsafe { in futex_wait() localVariable
136 if ret.is_err() { in futex_wait()
174 let ret = unsafe { in futex_wake() localVariable
185 if ret.is_err() { in futex_wake()
214 let ret = syscall2(set_robust_list, head as usize, len); in set_list() localVariable
215 if ret.is_err() { in set_list()
216 println!("failed to set_robust_list, ret = {:?}", ret); in set_list()
284 let ret = syscall2(set_robust_list, head as usize, len); in test01() localVariable
285 if ret.is_err() { in test01()
286 println!("failed to set_robust_list, ret = {:?}", ret); in test01()
[all …]
/DragonOS/kernel/src/arch/riscv64/syscall/
H A Dmod.rs16 let ret = $val; localVariable
17 $regs.a0 = ret;
21 log::debug!("syscall return:pid={:?},ret= {:?}\n", pid, ret as isize);
/DragonOS/kernel/src/arch/x86_64/include/asm/
H A Dasm.h209 unsigned char ret = 0; in io_in8() local
212 : "=a"(ret) in io_in8()
215 return ret; in io_in8()
221 unsigned int ret = 0; in io_in32() local
224 : "=a"(ret) in io_in32()
227 return ret; in io_in32()
/DragonOS/kernel/src/driver/tty/
H A Dtty_port.rs86 let ret = ld.receive_buf2(tty.clone(), buf, None, count); in receive_buf() localVariable
87 if ret.is_err() && ret.clone().unwrap_err() == SystemError::ENOSYS { in receive_buf()
93 ret in receive_buf()
H A Dtty_device.rs160 let ret = tty.open(tty.core()); in open() localVariable
161 if let Err(err) = ret { in open()
257 let ret = ld.write(tty.clone(), &buf[written..], size, mode)?; in write_at() localVariable
259 written += ret; in write_at()
260 count -= ret; in write_at()
391 let ret = tty.resize(tty.clone(), *user_winsize); in ioctl() localVariable
393 if ret != Err(SystemError::ENOSYS) { in ioctl()
394 return ret.map(|_| 0); in ioctl()
/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dvirtual_console.rs322 let (ret, rescan) = self.translate_unicode(*c); in translate()
323 if let Some(ret) = ret { in translate()
324 *c = ret; in translate()
326 return (ret, rescan); in translate()
1654 let ret = self.driver_funcs().con_getxy(self, start); in do_update_region() localVariable
1655 let (mut x, mut y) = if let Ok((_, tmp_x, tmp_y)) = ret { in do_update_region()
1705 let ret = self.driver_funcs().con_getxy(self, start); in do_update_region() localVariable
1706 if let Ok(ret) = ret { in do_update_region()
1707 start = ret.0; in do_update_region()
1775 let ret = self in build_attr() localVariable
[all …]
/DragonOS/kernel/src/driver/tty/tty_ldisc/
H A Dmod.rs105 let ret = ld.open(tty); in ldisc_setup() localVariable
106 if let Err(err) = ret { in ldisc_setup()
116 let ret: Result<(), SystemError> = ld.open(o_tty.clone()); in ldisc_setup() localVariable
117 if ret.is_err() { in ldisc_setup()
/DragonOS/user/apps/test_ebpf/syscall_ebpf/xtask/src/
H A Dmain.rs26 let ret = match opts.command { in main() localVariable
32 if let Err(e) = ret { in main()
/DragonOS/kernel/src/libs/futex/
H A Dsyscall.rs119 let ret = RobustListHead::set_robust_list(head_uaddr, len); in set_robust_list() localVariable
120 return ret; in set_robust_list()
132 let ret = RobustListHead::get_robust_list(pid, head_uaddr, len_ptr_uaddr); in get_robust_list() localVariable
133 return ret; in get_robust_list()
/DragonOS/kernel/crates/wait_queue_macros/src/
H A Dlib.rs37 ($wq:expr, $condition: expr, $interruptible: expr, $ret: expr, $cmd:expr) => {{
38 let mut retval = $ret;
/DragonOS/user/apps/test_ebpf/syscall_ebpf/syscall_ebpf-ebpf/src/
H A Dmain.rs11 try_syscall_ebpf(ctx).unwrap_or_else(|ret| ret) in syscall_ebpf()
/DragonOS/kernel/src/syscall/
H A Dmisc.rs75 let mut ret = Vec::new(); in get_random() localVariable
83 ret.push((rand >> (offset * 2)) as u8); in get_random()
88 writer.copy_to_user(&ret, 0)?; in get_random()
/DragonOS/kernel/src/arch/x86_64/syscall/
H A Dmod.rs51 let ret = $val; localVariable
52 $regs.rax = ret as u64;
56 debug!("syscall return:pid={:?},ret= {:?}\n", pid, ret as isize);
/DragonOS/kernel/src/libs/
H A Dwait_queue.rs373 let mut ret = 0; in wakeup_any() localVariable
380 ret += 1; in wakeup_any()
389 ret in wakeup_any()
399 let mut ret = 0; in wakeup() localVariable
405 ret += 1; in wakeup()
414 ret in wakeup()
/DragonOS/kernel/src/driver/firmware/efi/
H A Dfdt.rs125 let mut ret = EFIFdtParams::default(); in get_fdt_params() localVariable
147 self.do_get_fdt_prop(prop_type, &prop, &mut ret) in get_fdt_params()
154 return Ok(ret); in get_fdt_params()
/DragonOS/kernel/src/net/event_poll/
H A Dsyscall.rs29 let ret = EventPoll::do_create_epoll(flags); in epoll_create1() localVariable
30 ret in epoll_create1()
/DragonOS/kernel/src/arch/riscv64/asm/
H A Dhead.S133 ret
230 ret
300 ret
318 ret
/DragonOS/kernel/src/filesystem/devpts/
H A Dmod.rs51 let ret = Arc::new(Self { in new() localVariable
57 ret.root_inode.set_fs(Arc::downgrade(&ret)); in new()
59 ret in new()
/DragonOS/kernel/src/arch/x86_64/pci/
H A Dpci.rs47 let ret = unsafe { in read_config() localVariable
52 return ret; in read_config()
/DragonOS/kernel/src/arch/x86_64/init/
H A Dmod.rs112 let ret = hpet_init(); in setup_arch_post() localVariable
113 if ret.is_ok() { in setup_arch_post()

12