MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / return_error

Method return_error

kernel/src/process.rs:176–180  ·  view source on GitHub ↗

Modify a thread context, setting the RAX register to signal an error. Note: Should only be applied to threads that will return from a syscall.

(&self, error_code: usize)

Source from the content-addressed store, hash-verified

174 /// Note: Should only be applied to threads that
175 /// will return from a syscall.
176 pub fn return_error(&self, error_code: usize) {
177 // Ensure that the error is in range, no message
178 self.context_mut().rax = error_code &
179 syscalls::SYSCALL_ERROR_MASK;
180 }
181
182 /// Modify a thread context, setting registers
183 ///

Callers 8

sys_receiveFunction · 0.80
sys_sendFunction · 0.80
sys_copy_rendezvousFunction · 0.80
sys_execFunction · 0.80
sys_mountFunction · 0.80
sendMethod · 0.80
receiveMethod · 0.80
closeMethod · 0.80

Calls 1

context_mutMethod · 0.80

Tested by

no test coverage detected