Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 21 of 21) sorted by relevance

/DragonOS-0.1.8/kernel/src/libs/
Dlockref.c69 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 …]
Dlockref.rs154 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 …]
Dbitree.c156 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/
Dfork.c38 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 …]
Dkthread.c161 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()
Dprocess.rs56 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()
Dprocess.c412 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/
Dcmd.c416 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/
Dcrt0.c14 int retval = main(argc, argv); in _start() local
15 exit(retval); in _start()
/DragonOS-0.1.8/kernel/src/arch/x86_64/asm/
Dcmpxchg.rs10 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/
Dkfifo.h133 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()
Dglib.h314 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/
Dunistd.c115 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()
Dstdio.c57 int retval = close(stream->fd); in fclose() local
58 if (retval) in fclose()
59 return retval; in fclose()
Ddirent.c52 int retval = close(dirp->fd); in closedir() local
54 return retval; in closedir()
/DragonOS-0.1.8/kernel/src/libs/libUI/
Dscreen_manager.c288 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()
Dtextui.c332 int retval = scm_register(&textui_framework); in textui_init() local
333 if (retval != 0) in textui_init()
/DragonOS-0.1.8/kernel/src/ipc/
Dsyscall.rs68 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()
Dsignal.rs87 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/
Dkallsyms.c54 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/
Dmmio_buddy.rs487 let retval: i32 = 0; in create_mmio() localVariable
519 return Ok(retval); in create_mmio()