Manual Pages for Linux CentOS command on man swapcontext
MyWebUniversity

Manual Pages for Linux CentOS command on man swapcontext

SWAPCONTEXT(2) Linux 2.6 Programmer's Guide SWAPCONTEXT(2) NAME

swapcontext - Swap out old context with new context SYNOPSIS int sysswapcontext (struct ucontext *oldctx, struct ucontext *newctx, int r5, int r6, int r7, int r8, struct ptregs *regs); DESCRIPTION swapcontext swaps out context oldctx with new context newctx. The int

r# values have no place in the system call functionality. The regs val‐ ue indicates the current user register values from the user stack. RETURN VALUE swapcontext returns 0 on success; otherwise, swapcontext returns one of the errors listed in the "Errors" section. ERRORS

-EFAULT swapcontext could not verify that the memory area pointed to by oldctx or newctx was accessible for the operation.

-SIGSEGV A fault occurred when the context was being copied into the ker‐ nel's image of the user's registers. The should only occur in an

out-of-memory situation. SEE ALSO getcontext(2), sigaction(2), sigaltstack(2), sigprocmask(2) AUTHOR Niki Rahimi

Linux 2.6 2004-March-12 SWAPCONTEXT(2)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™