Viewing: arch_signal.h
📄 arch_signal.h (Read Only) ⬅ To go back
#ifndef ARCH_SIGNAL_H
#define ARCH_SIGNAL_H

/*
 * arch_sigreturn — Restore user registers from a signal frame on the
 *                  user stack.  Architecture-specific because the frame
 *                  layout and register sanitisation depend on the ISA.
 *
 * regs       : current trapframe (will be overwritten on success).
 *              Points to the arch-specific register struct (e.g. struct registers on x86).
 * user_frame : user-space pointer to the signal frame pushed by the
 *              signal delivery trampoline.
 *
 * Returns 0 on success, negative errno on failure.
 */
int arch_sigreturn(void* regs, const void* user_frame);

#endif /* ARCH_SIGNAL_H */