Home
last modified time | relevance | path

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

/DragonOS-0.1.8/user/apps/test_sqlite3/
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-0.1.8/kernel/src/arch/x86_64/asm/
Dcurrent.rs8 let ret: Option<&mut process_control_block>; in current_pcb() localVariable
15 ret = (tmp as *mut process_control_block).as_mut(); in current_pcb()
18 ret.unwrap() in current_pcb()
/DragonOS-0.1.8/user/libs/libc/src/arch/x86_64/
Dcrtn.S4 ret
9 ret
/DragonOS-0.1.8/kernel/src/process/
Dsyscall.rs42 let ret = unsafe { c_sys_wait4(pid, wstatus, options, rusage) }; in wait4() localVariable
43 if (ret as isize) < 0 { in wait4()
45 SystemError::from_posix_errno((ret as isize) as i32).expect("wait4: Invalid errno") in wait4()
48 return Ok(ret as usize); in wait4()
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci.c14 #define ADD_DEVICE_STRUCT_TO_LIST(ret) \ argument
20 list_add(pci_device_structure_list, &(ret->header.list)); \
25 list_init(&(ret->header.list)); \
26 pci_device_structure_list = &(ret->header.list); \
50 uint32_t ret = (uint)(io_in32(PORT_PCI_CONFIG_DATA)); in pci_read_config() local
52 return ret; in pci_read_config()
259 void *ret; in pci_read_header() local
271 ret = common_header; in pci_read_header()
273 …pci_read_general_device_header((struct pci_device_structure_general_device_t *)ret, bus, slot, fun… in pci_read_header()
275 ADD_DEVICE_STRUCT_TO_LIST(((struct pci_device_structure_general_device_t *)ret)); in pci_read_header()
[all …]
/DragonOS-0.1.8/kernel/src/common/
Dglib.h135 unsigned char ret = 0; in io_in8() local
138 : "=a"(ret) in io_in8()
141 return ret; in io_in8()
147 unsigned int ret = 0; in io_in32() local
150 : "=a"(ret) in io_in32()
153 return ret; in io_in32()
/DragonOS-0.1.8/user/apps/shell/
Dcmd_test.c15 int ret = pipe(fd); // 创建一个管道 in shell_pipe_test() local
16 if (ret < 0) in shell_pipe_test()
/DragonOS-0.1.8/user/libs/libKeyboard/
Dkeyboard.c530 unsigned int ret = 0; in keyboard_get_scancode() local
531 read(fd, &ret, 1); in keyboard_get_scancode()
532 return ret; in keyboard_get_scancode()
/DragonOS-0.1.8/kernel/src/arch/x86_64/pci/
Dpci.rs22 let ret = unsafe { in read_config() localVariable
27 return ret; in read_config()
/DragonOS-0.1.8/kernel/src/mm/
Dmmio_buddy.rs228 Ok(ret) => return Ok(ret), in query_addr_region()
279 Ok(ret) => return Ok(ret), in query_addr_region()
286 Ok(ret) => return Ok(ret), in query_addr_region()
302 Ok(ret) => return Ok(ret), in mmio_buddy_query_addr_region()
/DragonOS-0.1.8/kernel/src/libs/
Dnotifier.rs84 let mut ret: i32 = 0; in call_chain() localVariable
91 ret = b.notifier_call(action, data); in call_chain()
94 return (ret, nr_calls); in call_chain()
Didr.c411 void *ret = stk[0]->ary[__id & IDR_MASK]; in idr_remove() local
414 return ret; in idr_remove()
889 int ret = 0; in __get_id_from_bitmap() local
/DragonOS-0.1.8/kernel/src/driver/interrupt/apic/
Dapic.c490 ul ret; in apic_ioapic_read_rte() local
495 ret = *apic_ioapic_map.virtual_data_addr; in apic_ioapic_read_rte()
496 ret <<= 32; in apic_ioapic_read_rte()
502 ret |= *apic_ioapic_map.virtual_data_addr; in apic_ioapic_read_rte()
505 return ret; in apic_ioapic_read_rte()
/DragonOS-0.1.8/kernel/src/sched/
Dcompletion.c156 bool ret = true; in try_wait_for_completion() local
160 ret = false; in try_wait_for_completion()
165 return ret; in try_wait_for_completion()
/DragonOS-0.1.8/kernel/src/driver/mouse/
Dps2_mouse.c41 int ret = (int)((char)(*(ps2_mouse_buf_ptr->ptr_tail))); in ps2_mouse_get_scancode() local
46 return ret; in ps2_mouse_get_scancode()
/DragonOS-0.1.8/kernel/src/arch/x86_64/
Dsyscall.rs31 let ret = $val; localVariable
32 $regs.rax = ret as u64;
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dmod.rs139 let ret = devfs_register( in ahci_rust_init() localVariable
143 if let Err(err) = ret { in ahci_rust_init()
/DragonOS-0.1.8/kernel/src/ipc/
Dsignal.rs170 let ret = unsafe { ((*pcb).sighand as *mut sighand_struct).as_mut() }; in lock_process_sighand() localVariable
172 return ret; in lock_process_sighand()
563 let mut ret = siginfo::new(sig, 0, si_code_val::SI_USER); in collect_signal() localVariable
564 ret._sinfo.data._sifields._kill._pid = 0; in collect_signal()
565 return ret; in collect_signal()
Dsignal_types.rs348 let ret: SignalNumber = unsafe { core::mem::transmute(value) }; in from() localVariable
349 return ret; in from()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dfs.rs1515 let mut ret: Vec<String> = Vec::new(); in list() localVariable
1518 ret.push(ent.name()); in list()
1540 return Ok(ret); in list()
1696 let ret: Option<Cluster> = self.current_cluster; in next() localVariable
1711 return ret; in next()
/DragonOS-0.1.8/kernel/src/net/
Dsyscall.rs524 let ret = match AddressFamily::try_from(unsafe { self.family })? { in len() localVariable
532 return ret; in len()
/DragonOS-0.1.8/kernel/src/
Dhead.S203 ret