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).