Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
signal_64.c File Reference
#include <linux/rwsem.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/smp.h>
#include <linux/kernel.h>
#include <linux/signal.h>
#include <linux/errno.h>
#include <linux/wait.h>
#include <linux/personality.h>
#include <linux/ptrace.h>
#include <linux/unistd.h>
#include <linux/stddef.h>
#include <linux/tracehook.h>
#include <asm/ucontext.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
#include <asm/cacheflush.h>
#include <asm/fpu.h>

Go to the source code of this file.

Data Structures

struct  sigframe
 
struct  rt_sigframe
 

Macros

#define REG_RET   9
 
#define REG_ARG1   2
 
#define REG_ARG2   3
 
#define REG_ARG3   4
 
#define REG_SP   15
 
#define REG_PR   18
 
#define REF_REG_RET   regs->regs[REG_RET]
 
#define REF_REG_SP   regs->regs[REG_SP]
 
#define DEREF_REG_PR   regs->regs[REG_PR]
 
#define DEBUG_SIG   0
 
#define SR_MASK   0xffff8cfd
 
#define COPY(x)   err |= __get_user(regs->x, &sc->sc_##x)
 
#define COPY(x)   err |= __put_user(regs->x, &sc->sc_##x)
 

Functions

asmlinkage int sys_sigsuspend (old_sigset_t mask)
 
asmlinkage int sys_sigaction (int sig, const struct old_sigaction __user *act, struct old_sigaction __user *oact)
 
asmlinkage int sys_sigaltstack (const stack_t __user *uss, stack_t __user *uoss, unsigned long r4, unsigned long r5, unsigned long r6, unsigned long r7, struct pt_regs *regs)
 
asmlinkage int sys_sigreturn (unsigned long r2, unsigned long r3, unsigned long r4, unsigned long r5, unsigned long r6, unsigned long r7, struct pt_regs *regs)
 
asmlinkage int sys_rt_sigreturn (unsigned long r2, unsigned long r3, unsigned long r4, unsigned long r5, unsigned long r6, unsigned long r7, struct pt_regs *regs)
 
void sa_default_restorer (void)
 
void sa_default_rt_restorer (void)
 
asmlinkage void do_notify_resume (struct pt_regs *regs, unsigned long thread_info_flags)
 

Macro Definition Documentation

#define COPY (   x)    err |= __get_user(regs->x, &sc->sc_##x)
#define COPY (   x)    err |= __put_user(regs->x, &sc->sc_##x)
#define DEBUG_SIG   0

Definition at line 41 of file signal_64.c.

#define DEREF_REG_PR   regs->regs[REG_PR]

Definition at line 39 of file signal_64.c.

#define REF_REG_RET   regs->regs[REG_RET]

Definition at line 37 of file signal_64.c.

#define REF_REG_SP   regs->regs[REG_SP]

Definition at line 38 of file signal_64.c.

#define REG_ARG1   2

Definition at line 32 of file signal_64.c.

#define REG_ARG2   3

Definition at line 33 of file signal_64.c.

#define REG_ARG3   4

Definition at line 34 of file signal_64.c.

#define REG_PR   18

Definition at line 36 of file signal_64.c.

#define REG_RET   9

Definition at line 31 of file signal_64.c.

#define REG_SP   15

Definition at line 35 of file signal_64.c.

#define SR_MASK   0xffff8cfd

Function Documentation

asmlinkage void do_notify_resume ( struct pt_regs regs,
unsigned long  thread_info_flags 
)

Definition at line 654 of file signal_64.c.

void sa_default_restorer ( void  )
void sa_default_rt_restorer ( void  )
asmlinkage int sys_rt_sigreturn ( unsigned long  r2,
unsigned long  r3,
unsigned long  r4,
unsigned long  r5,
unsigned long  r6,
unsigned long  r7,
struct pt_regs regs 
)

Definition at line 343 of file signal_64.c.

asmlinkage int sys_sigaction ( int  sig,
const struct old_sigaction __user act,
struct old_sigaction __user oact 
)

Definition at line 142 of file signal_64.c.

asmlinkage int sys_sigaltstack ( const stack_t __user uss,
stack_t __user uoss,
unsigned long  r4,
unsigned long  r5,
unsigned long  r6,
unsigned long  r7,
struct pt_regs regs 
)

Definition at line 174 of file signal_64.c.

asmlinkage int sys_sigreturn ( unsigned long  r2,
unsigned long  r3,
unsigned long  r4,
unsigned long  r5,
unsigned long  r6,
unsigned long  r7,
struct pt_regs regs 
)

Definition at line 309 of file signal_64.c.

asmlinkage int sys_sigsuspend ( old_sigset_t  mask)

Definition at line 134 of file signal_64.c.