Home
last modified time | relevance | path

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

/DragonOS-0.1.5/user/apps/shell/
Dcmd_test.c9 int ret = -1; in shell_pipe_test() local
15 ret = pipe(fd); in shell_pipe_test()
16 if (-1 == ret) { in shell_pipe_test()
23 ret = write(fd[1], msg, strlen(msg)); in shell_pipe_test()
27 ret = read(fd[0], buf, sizeof(buf)); in shell_pipe_test()
28 printf("parent read %d bytes data: %s\n", ret, buf); in shell_pipe_test()
/DragonOS-0.1.5/kernel/src/arch/x86_64/asm/
Dcurrent.rs8 let ret: Option<&mut process_control_block>; in current_pcb() localVariable
14 ret = (tmp as *mut process_control_block).as_mut(); in current_pcb()
17 ret.unwrap() in current_pcb()
/DragonOS-0.1.5/user/libs/libc/src/arch/x86_64/
Dcrtn.S4 ret
9 ret
/DragonOS-0.1.5/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.5/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.5/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.5/kernel/src/mm/
Dmmio_buddy.rs190 Ok(ret) => return Ok(ret), in query_addr_region()
241 Ok(ret) => return Ok(ret), in query_addr_region()
248 Ok(ret) => return Ok(ret), in query_addr_region()
267 Ok(ret) => return Ok(ret), in mmio_buddy_query_addr_region()
/DragonOS-0.1.5/kernel/src/driver/interrupt/apic/
Dapic.c485 ul ret; in apic_ioapic_read_rte() local
490 ret = *apic_ioapic_map.virtual_data_addr; in apic_ioapic_read_rte()
491 ret <<= 32; in apic_ioapic_read_rte()
497 ret |= *apic_ioapic_map.virtual_data_addr; in apic_ioapic_read_rte()
500 return ret; in apic_ioapic_read_rte()
/DragonOS-0.1.5/kernel/src/process/
Dfork.c238 … int ret = mm_create_vma(new_mms, vma->vm_start + i * PAGE_2M_SIZE, PAGE_2M_SIZE, vma->vm_flags, in process_copy_mm() local
241 if (unlikely(ret == -EEXIST)) in process_copy_mm()
257 … int ret = mm_create_vma(new_mms, vma->vm_start, map_size, vma->vm_flags, vma->vm_ops, &new_vma); in process_copy_mm() local
259 if (unlikely(ret == -EEXIST)) in process_copy_mm()
Dprocess.c291 int ret = in process_load_elf_file() local
295 if (ret == -EEXIST) in process_load_elf_file()
/DragonOS-0.1.5/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.5/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.5/kernel/src/syscall/
Dsyscall.c406 ul ret = system_call_table[regs->rax](regs); in do_syscall_int() local
407 regs->rax = ret; // 返回码 in do_syscall_int()
/DragonOS-0.1.5/kernel/src/driver/disk/ahci/
Dmod.rs138 let ret = devfs_register( in ahci_rust_init() localVariable
142 if let Err(err) = ret { in ahci_rust_init()
/DragonOS-0.1.5/kernel/src/ipc/
Dsignal.rs209 let ret = unsafe { ((*pcb).sighand as *mut sighand_struct).as_mut() }; in lock_process_sighand() localVariable
211 return ret; in lock_process_sighand()
602 let mut ret = siginfo::new(sig, 0, si_code_val::SI_USER); in collect_signal() localVariable
603 ret._sinfo.data._sifields._kill._pid = 0; in collect_signal()
604 return ret; in collect_signal()
Dsignal_types.rs347 let ret: SignalNumber = unsafe { core::mem::transmute(value) }; in from() localVariable
348 return ret; in from()
/DragonOS-0.1.5/kernel/src/libs/
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.5/kernel/src/filesystem/fat/
Dfs.rs1469 let mut ret: Vec<String> = Vec::new(); in list() localVariable
1472 ret.push(ent.name()); in list()
1494 return Ok(ret); in list()
1650 let ret: Option<Cluster> = self.current_cluster; in next() localVariable
1665 return ret; in next()
/DragonOS-0.1.5/kernel/src/
Dhead.S203 ret