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

Go to the source code of this file.

Functions

: the name of a register

regs_query_register_offset() - query register offset from its name

regs_query_register_offset() returns the offset of a register in struct pt_regs from its name. If the name is invalid, this returns -EINVAL;

int regs_query_register_offset (const char *name)
 
const charregs_query_register_name (unsigned int offset)
 

Function Documentation

const char* regs_query_register_name ( unsigned int  offset)

regs_query_register_name() - query register name from its offset : the offset of a register in struct pt_regs.

regs_query_register_name() returns the name of a register from its offset in struct pt_regs. If the is invalid, this returns NULL;

Definition at line 26 of file ptrace.c.

int regs_query_register_offset ( const char name)

Definition at line 10 of file ptrace.c.