/DragonOS-0.1.8/kernel/src/libs/ |
D | lockref.c | 69 bool retval; in lockref_inc_not_zero() 71 retval = false; in lockref_inc_not_zero() 75 retval = true; in lockref_inc_not_zero() 78 return retval; in lockref_inc_not_zero() 103 int retval = -1; in lockref_dec() 108 retval = lock_ref->count; in lockref_dec() 112 return retval; in lockref_dec() 160 bool retval = false; in lockref_dec_not_zero() 165 retval = true; in lockref_dec_not_zero() 168 return retval; in lockref_dec_not_zero() [all …]
|
D | lockref.rs | 154 let mut retval = Err(SystemError::EPERM); in inc_not_zero() localVariable 159 retval = Ok(self.count); in inc_not_zero() 163 return retval; in inc_not_zero() 182 let mut retval = Err(SystemError::EPERM); in inc_not_dead() localVariable 187 retval = Ok(self.count); in inc_not_dead() 190 return retval; in inc_not_dead() 209 let retval: Result<i32, SystemError>; in dec() localVariable 214 retval = Ok(self.count); in dec() 216 retval = Err(SystemError::EPERM); in dec() 221 return retval; in dec() [all …]
|
D | bitree.c | 156 int retval; in bt_delete() local 159 retval = bt_query(root, value, &tmp_addr); in bt_delete() 160 if (retval != 0 || tmp_addr == NULL) in bt_delete() 161 return retval; in bt_delete()
|
/DragonOS-0.1.8/kernel/src/process/ |
D | fork.c | 38 int retval = 0; in do_fork() local 47 retval = -ENOMEM; in do_fork() 48 return retval; in do_fork() 70 retval = kthread_set_worker_private(tsk); in do_fork() 71 if (IS_ERR_VALUE(retval)) in do_fork() 103 retval = -ENOMEM; in do_fork() 106 retval = process_copy_flags(clone_flags, tsk); in do_fork() 107 if (retval) in do_fork() 111 retval = process_copy_mm(clone_flags, tsk); in do_fork() 112 if (retval) in do_fork() [all …]
|
D | kthread.c | 161 int retval = 0; in kthread() local 183 retval = -EINTR; in kthread() 187 retval = thread_fn(data); in kthread() 189 kthread_exit(retval); in kthread() 276 int retval; in kthread_stop() local 284 retval = target->result; in kthread_stop() 289 return retval; in kthread_stop()
|
D | process.rs | 56 let mut retval = false; in process_try_to_wake_up() localVariable 66 retval = true; in process_try_to_wake_up() 67 return retval; in process_try_to_wake_up() 79 retval = true; in process_try_to_wake_up() 83 return retval; in process_try_to_wake_up()
|
D | process.c | 412 int retval = process_wakeup(pcb); in process_wakeup_immediately() local 413 if (retval != 0) in process_wakeup_immediately() 414 return retval; in process_wakeup_immediately()
|
/DragonOS-0.1.8/user/apps/shell/ |
D | cmd.c | 416 int retval = mkdir(full_path, 0); in shell_cmd_mkdir() local 422 return retval; in shell_cmd_mkdir() 445 int retval = rmdir(full_path); in shell_cmd_rmdir() local 446 if (retval != 0) in shell_cmd_rmdir() 447 printf("Failed to remove %s, retval=%d\n", full_path, retval); in shell_cmd_rmdir() 453 return retval; in shell_cmd_rmdir() 467 int retval = 0; in shell_cmd_rm() local 478 retval = rm(full_path); in shell_cmd_rm() 480 if (retval != 0) in shell_cmd_rm() 481 printf("Failed to remove %s, retval=%d\n", full_path, retval); in shell_cmd_rm() [all …]
|
/DragonOS-0.1.8/user/libs/libc/src/arch/x86_64/ |
D | crt0.c | 14 int retval = main(argc, argv); in _start() local 15 exit(retval); in _start()
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/asm/ |
D | cmpxchg.rs | 10 let retval = __try_cmpxchg_q(ptr, old_ptr, new_ptr); in try_cmpxchg_q() localVariable 11 return retval; in try_cmpxchg_q()
|
/DragonOS-0.1.8/kernel/src/common/ |
D | kfifo.h | 133 uint32_t retval = kfifo_in(fifo, from, size); in kfifo_in_locked() local 135 return retval; in kfifo_in_locked() 150 uint32_t retval = kfifo_out(fifo, to, size); in kfifo_out_locked() local 152 return retval; in kfifo_out_locked()
|
D | glib.h | 314 uint64_t retval; in __read8b() local 316 : "=r"(retval) in __read8b() 319 return retval; in __read8b() 331 uint32_t retval; in __read4b() local 333 : "=d"(retval) in __read4b() 336 return retval; in __read4b()
|
/DragonOS-0.1.8/user/libs/libc/src/ |
D | unistd.c | 115 void *retval = (void *)syscall_invoke(SYS_SBRK, (uint64_t)increment, 0, 0, 0, 0, 0, 0, 0); in sbrk() local 116 if (retval == (void *)-ENOMEM) in sbrk() 121 return (void *)retval; in sbrk() 158 int retval = syscall_invoke(SYS_EXECVE, (uint64_t)path, (uint64_t)argv, 0, 0, 0, 0, 0, 0); in execv() local 159 if (retval != 0) in execv()
|
D | stdio.c | 57 int retval = close(stream->fd); in fclose() local 58 if (retval) in fclose() 59 return retval; in fclose()
|
D | dirent.c | 52 int retval = close(dirp->fd); in closedir() local 54 return retval; in closedir()
|
/DragonOS-0.1.8/kernel/src/libs/libUI/ |
D | screen_manager.c | 288 int retval = 0; in scm_framework_enable() local 292 retval = video_set_refresh_target(ui->buf); in scm_framework_enable() 293 if (retval == 0) in scm_framework_enable() 300 return retval; in scm_framework_enable() 316 int retval = 0; in scm_framework_disable() local 319 retval = video_set_refresh_target(NULL); in scm_framework_disable() 320 if (retval == 0) in scm_framework_disable() 328 return retval; in scm_framework_disable()
|
D | textui.c | 332 int retval = scm_register(&textui_framework); in textui_init() local 333 if (retval != 0) in textui_init()
|
/DragonOS-0.1.8/kernel/src/ipc/ |
D | syscall.rs | 68 let retval = signal_kill_something_info(sig, Some(&mut info), pid).map(|x| x as usize); in kill() localVariable 72 return retval; in kill() 158 let retval = super::signal::do_sigaction( in sigaction() localVariable 173 if (retval == Ok(())) && (!old_act.is_null()) { in sigaction() 201 return retval.map(|_| 0); in sigaction()
|
D | signal.rs | 87 let mut retval = Err(SystemError::ESRCH); in signal_kill_proc_info() localVariable 96 return retval; in signal_kill_proc_info() 102 retval = signal_send_sig_info(sig, info, pcb.unwrap()); in signal_kill_proc_info() 105 return retval; in signal_kill_proc_info() 135 let mut retval = Err(SystemError::ESRCH); in signal_send_sig_info() localVariable 141 retval = send_signal_locked(sig, info, target_pcb, PidType::PID); in signal_send_sig_info() 147 return retval; in signal_send_sig_info() 586 let retval = setup_frame(sig, ka, info, oldset, regs); in handle_signal() localVariable 587 if retval.is_err() { in handle_signal() 588 return retval; in handle_signal() [all …]
|
/DragonOS-0.1.8/kernel/src/debug/ |
D | kallsyms.c | 54 int retval = fscanf(filp, "%llx %c %510s\n", &entry->vaddr, &entry->type, str); in read_symbol() local 57 if (retval != 3) in read_symbol() 59 if (retval != EOF) in read_symbol()
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | mmio_buddy.rs | 487 let retval: i32 = 0; in create_mmio() localVariable 519 return Ok(retval); in create_mmio()
|