⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

get_syscall_frame

Function get_syscall_frame 

Source
pub fn get_syscall_frame() -> Option<&'static SyscallFrame>
Expand description

Get a reference to the saved syscall register frame.

Only valid during syscall handler execution. Returns None if called outside of a syscall context.

§Safety

The returned reference points to the kernel stack. It is valid only while the syscall handler is executing (before registers are popped on return).