Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
ptrace.h File Reference
#include <uapi/asm/ptrace.h>

Go to the source code of this file.

Macros

#define user_mode(regs)   (processor_mode(regs) == USER_MODE)
 
#define processor_mode(regs)   ((regs)->UCreg_asr & MODE_MASK)
 
#define interrupts_enabled(regs)   (!((regs)->UCreg_asr & PSR_I_BIT))
 
#define fast_interrupts_enabled(regs)   (!((regs)->UCreg_asr & PSR_R_BIT))
 
#define instruction_pointer(regs)   ((regs)->UCreg_pc)
 

Macro Definition Documentation

#define fast_interrupts_enabled (   regs)    (!((regs)->UCreg_asr & PSR_R_BIT))

Definition at line 28 of file ptrace.h.

#define instruction_pointer (   regs)    ((regs)->UCreg_pc)

Definition at line 56 of file ptrace.h.

#define interrupts_enabled (   regs)    (!((regs)->UCreg_asr & PSR_I_BIT))

Definition at line 25 of file ptrace.h.

#define processor_mode (   regs)    ((regs)->UCreg_asr & MODE_MASK)

Definition at line 22 of file ptrace.h.

#define user_mode (   regs)    (processor_mode(regs) == USER_MODE)

Definition at line 19 of file ptrace.h.