Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
arch
sh
kernel
ptrace.c
Go to the documentation of this file.
1
#include <linux/ptrace.h>
2
10
int
regs_query_register_offset
(
const
char
*
name
)
11
{
12
const
struct
pt_regs_offset
*roff;
13
for
(roff =
regoffset_table
; roff->
name
!=
NULL
; roff++)
14
if
(!
strcmp
(roff->
name
, name))
15
return
roff->
offset
;
16
return
-
EINVAL
;
17
}
18
26
const
char
*
regs_query_register_name
(
unsigned
int
offset
)
27
{
28
const
struct
pt_regs_offset
*roff;
29
for
(roff =
regoffset_table
; roff->
name
!=
NULL
; roff++)
30
if
(roff->
offset
== offset)
31
return
roff->
name
;
32
return
NULL
;
33
}
Generated on Thu Jan 10 2013 12:52:35 for Linux Kernel by
1.8.2