|| Linux 2.6 Programmer's Guide
NAME swapcontext - Swap out old context with new context
int sys_swapcontext (struct ucontext *old_ctx, struct ucontext *new_ctx, int r5, int r6, int r7, int r8, struct pt_regs *regs);
swaps out context
with new context
values have no place in the system call functionality. The
value indicates the current user register values from the user stack.
returns 0 on success; otherwise,
returns one of the errors listed in the "Errors" section.
swapcontext could not verify that the memory area pointed to by
new_ctx was accessible for the operation.
A fault occurred when the context was being copied into the kernel's image of the user's registers. The should only occur in an out-of-memory situation.
AUTHOR Niki Rahimi