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

Method context_mut

kernel/src/process.rs:163–165  ·  view source on GitHub ↗

Get a mutable reference to the thread Context

(&self)

Source from the content-addressed store, hash-verified

161
162 /// Get a mutable reference to the thread Context
163 fn context_mut(&self) -> &mut Context {
164 unsafe {&mut *(self.context as *mut Context)}
165 }
166
167 pub fn set_context(&mut self, context_ptr: *mut Context) {
168 self.context = context_ptr as u64;

Callers 4

return_errorMethod · 0.80
return_error_messageMethod · 0.80
new_kernel_threadFunction · 0.80
new_user_threadFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected