/DragonOS-0.1.9/user/apps/test_sqlite3/ |
D | main.c | 71 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-0.1.9/kernel/src/exception/ |
D | resend.rs | 56 let mut ret = Ok(()); in irq_check_and_resend() localVariable 59 ret = Err(SystemError::EINVAL); in irq_check_and_resend() 62 if ret.is_ok() { in irq_check_and_resend() 68 return ret; in irq_check_and_resend()
|
D | manage.rs | 633 let mut ret = Ok(()); in irq_startup() localVariable 652 ret = self.__irq_startup(desc_inner_guard); in irq_startup() 666 ret = self.__irq_startup(desc_inner_guard); in irq_startup() 687 return ret; in irq_startup() 777 let mut ret = Ok(()); in irq_do_set_affinity() localVariable 790 ret = Err(r.unwrap_err()); in irq_do_set_affinity() 793 return ret; in irq_do_set_affinity() 914 let ret; in do_set_irq_trigger() localVariable 941 ret = Ok(()); in do_set_irq_trigger() 951 ret = Err(r.unwrap_err()); in do_set_irq_trigger() [all …]
|
/DragonOS-0.1.9/kernel/src/libs/ida/src/ |
D | lib.rs | 38 let ret = self.current_id.fetch_add(1, Ordering::SeqCst); in alloc() localVariable 40 if ret == self.max_id { in alloc() 45 return Some(ret); in alloc()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/include/asm/ |
D | asm.h | 209 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-0.1.9/kernel/src/driver/tty/virtual_terminal/ |
D | virtual_console.rs | 323 let (ret, rescan) = self.translate_unicode(*c); in translate() 324 if ret.is_some() { in translate() 325 *c = ret.unwrap(); in translate() 327 return (ret, rescan); in translate() 1290 let ret = self.tab_stop.next_index(self.state.x + 1); in do_control() localVariable 1292 if ret.is_none() { in do_control() 1295 self.state.x = ret.unwrap(); in do_control() 1667 let ret = self.driver_funcs().con_getxy(self, start); in do_update_region() localVariable 1668 let (mut x, mut y) = if ret.is_err() { in do_update_region() 1671 let (_, tmp_x, tmp_y) = ret.unwrap(); in do_update_region() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/tty/ |
D | tty_port.rs | 93 let ret = ld.receive_buf2(tty.clone(), buf, None, count); in receive_buf() localVariable 94 if ret.is_err() && ret.clone().unwrap_err() == SystemError::ENOSYS { in receive_buf() 98 ret in receive_buf()
|
D | tty_device.rs | 119 let ret = tty.open(tty.core()); in open() localVariable 120 if ret.is_err() { in open() 121 let err = ret.unwrap_err(); in open() 215 let ret = ld.write(tty.clone(), &buf[written..], size, mode)?; in write_at() localVariable 217 written += ret; in write_at() 218 count -= ret; in write_at()
|
/DragonOS-0.1.9/kernel/src/syscall/ |
D | misc.rs | 75 let mut ret = Vec::new(); in get_random() localVariable 80 ret.push((rand >> (offset * 2)) as u8); in get_random() 85 writer.copy_to_user(&ret, 0)?; in get_random()
|
/DragonOS-0.1.9/kernel/src/driver/tty/tty_ldisc/ |
D | mod.rs | 105 let ret = ld.open(tty); in ldisc_setup() localVariable 106 if ret.is_err() { in ldisc_setup() 107 let err = ret.unwrap_err(); in ldisc_setup()
|
D | ntty.rs | 1037 let ret = self.read_flags.first_index(); in canon_copy_from_read_buf() localVariable 1038 if ret.is_some() { in canon_copy_from_read_buf() 1039 let tmp = ret.unwrap(); in canon_copy_from_read_buf() 1378 let ret = self.do_output_char(tty.clone(), c, space); in echoes() localVariable 1380 if ret.is_err() { in echoes() 1383 space -= ret.unwrap(); in echoes() 1577 let ret = self.disc_data_try_lock(); in read() localVariable 1578 if ret.is_err() { in read() 1581 ldata = ret.unwrap(); in read() 1629 let mut ret: Result<usize, SystemError> = Ok(0); in read() localVariable [all …]
|
/DragonOS-0.1.9/kernel/src/libs/ |
D | wait_queue.rs | 335 let mut ret = 0; in wakeup_any() localVariable 342 ret += 1; in wakeup_any() 351 ret in wakeup_any() 361 let mut ret = 0; in wakeup() localVariable 367 ret += 1; in wakeup() 376 ret in wakeup()
|
D | notifier.rs | 92 let mut ret: i32 = 0; in call_chain() localVariable 99 ret = b.notifier_call(action, data); in call_chain() 102 return (ret, nr_calls); in call_chain()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/pci/ |
D | pci.rs | 21 let ret = unsafe { in read_config() localVariable 26 return ret; in read_config()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/syscall/ |
D | mod.rs | 51 let ret = $val; localVariable 52 $regs.rax = ret as u64; 56 crate::kdebug!("syscall return:pid={:?},ret= {:?}\n", pid, ret as isize);
|
/DragonOS-0.1.9/kernel/src/driver/firmware/efi/ |
D | fdt.rs | 124 let mut ret = EFIFdtParams::default(); in get_fdt_params() localVariable 146 self.do_get_fdt_prop(prop_type, &prop, &mut ret) in get_fdt_params() 153 return Ok(ret); in get_fdt_params()
|
/DragonOS-0.1.9/kernel/src/mm/ |
D | mmio_buddy.rs | 230 Ok(ret) => return Ok(ret), in query_addr_region() 281 Ok(ret) => return Ok(ret), in query_addr_region() 288 Ok(ret) => return Ok(ret), in query_addr_region() 304 Ok(ret) => return Ok(ret), in mmio_buddy_query_addr_region()
|
/DragonOS-0.1.9/kernel/src/net/event_poll/ |
D | syscall.rs | 29 let ret = EventPoll::do_create_epoll(flags); in epoll_create1() localVariable 30 ret in epoll_create1()
|
D | mod.rs | 446 let mut ret = false; in do_epoll_wait() localVariable 450 ret = true; in do_epoll_wait() 456 if !ret { in do_epoll_wait() 457 ret = epoll.0.lock_irqsave().ep_events_available(); in do_epoll_wait() 459 ret in do_epoll_wait() 688 let ret = self.ready_list.iter().find(|epi| Arc::ptr_eq(epi, &epitem)); in ep_add_ready() localVariable 690 if ret.is_none() { in ep_add_ready()
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/asm/ |
D | head.S | 133 ret 230 ret 300 ret 318 ret
|
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/ |
D | mod.rs | 32 let mut ret = Vec::new(); localVariable 33 ret.resize(FrameBufferManager::FB_MAX, None); 34 RwLock::new(ret) 340 let ret = self.fb_set_color_map(cmap.clone()); in set_color_map() localVariable 341 if ret.is_err() && ret.clone().unwrap_err() == SystemError::ENOSYS { in set_color_map() 353 if ret.is_ok() { in set_color_map() 356 return ret; in set_color_map()
|
/DragonOS-0.1.9/kernel/src/driver/disk/ahci/ |
D | mod.rs | 135 let ret = devfs_register( in ahci_init() localVariable 139 if let Err(err) = ret { in ahci_init()
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/ipc/ |
D | signal.rs | 68 let ret: Signal = unsafe { core::mem::transmute(value) }; in from() localVariable 69 return ret; in from()
|
/DragonOS-0.1.9/kernel/src/libs/futex/ |
D | futex.rs | 430 let ret = bucket_1_mut.wake_up(key1.clone(), None, nr_wake as u32)?; in futex_requeue() localVariable 447 return Ok(ret); in futex_requeue() 482 Ok(ret) => { in futex_wake_op() 484 if ret { in futex_wake_op()
|
/DragonOS-0.1.9/kernel/src/ipc/ |
D | signal_types.rs | 432 let mut ret = SigInfo::new(sig, 0, SigCode::User, SigType::Kill(Pid::from(0))); in collect_signal() localVariable 433 ret.set_sig_type(SigType::Kill(Pid::new(0))); in collect_signal() 434 return ret; in collect_signal()
|