Query: swapcontext
OS: centos
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SWAPCONTEXT(2) Linux 2.6 Programmer's Guide SWAPCONTEXT(2)NAMEswapcontext - Swap out old context with new contextSYNOPSISint sys_swapcontext (struct ucontext *old_ctx, struct ucontext *new_ctx, int r5, int r6, int r7, int r8, struct pt_regs *regs);DESCRIPTIONswapcontext swaps out context old_ctx with new context new_ctx. The int r# values have no place in the system call functionality. The regs value indicates the current user register values from the user stack.RETURN VALUEswapcontext 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 old_ctx or new_ctx was accessible for the operation. -SIGSEGV 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.SEE ALSOgetcontext(2), sigaction(2), sigaltstack(2), sigprocmask(2)AUTHORNiki Rahimi Linux 2.6 2004-March-12 SWAPCONTEXT(2)
Related Man Pages |
---|
makecontext(3) - linux |
swapcontext(3) - linux |
makecontext(3) - redhat |
makecontext(3) - debian |
swapcontext(3) - osx |
Similar Topics in the Unix Linux Community |
---|
swapcontext() and Segmentation Fault |
How to create SIGSEGV at particular memory? |