1GETUNWIND(2)                  Linux System Calls                  GETUNWIND(2)
2
3
4

NAME

6       getunwind - copy the unwind data to caller's buffer
7
8

SYNOPSIS

10       #include <syscall.h>
11       #include <linux/unwind.h>
12
13       long getunwind (void *buf, size_t buf_size);
14

DESCRIPTION

16       The   sys_getunwind  function  returns  size  of  unwind  table,  which
17       describes gate page (kernel code that is mapped into user space).
18
19       The unwind data is copied to the buffer buf, which has  size  buf_size.
20       The  data  is  copied  only if buf_size is greater than or equal to the
21       size of the unwind data and buf is not NULL.  The system  call  returns
22       the size of the unwind data in both cases.
23
24       The  first  part of the unwind data contains an unwind table.  The rest
25       contains the associated unwind info in random order.  The unwind  table
26       contains a table looking like:
27
28            u64 start;      (64-bit address of start of function)
29            u64 end;        (64-bit address of start of function)
30            u64 info;       (BUF-relative offset to unwind info)
31
32       An  entry  with  a START address of zero is the end of table.  For more
33       information about the format you can see the IA-64 Software Conventions
34       and Runtime Architecture.
35
36

RETURN VALUE

38       The sys_getunwind function returns size of unwind table.
39
40

ERRORS

42       The  sys_getunwind  function fails with EFAULT if the unwind info can't
43       be stored in the space specified by the buf argument.
44
45

AVAILABILITY

47       This system call is available only on the IA-64 architecture.
48
49

APPLICATION USAGE

51       This system call has been deprecated. It's highly recommended to get at
52       the kernel's unwind info by the gate DSO. The address of the ELF header
53       for this DSO is passed to user level via AT_SYSINFO_EHDR.
54
55       The system call is not available to application programs as a function;
56       it can be called using the syscall(2) function.
57
58

SEE ALSO

60       syscall(2),
61
62
63
64Linux                           29 August 2006                    GETUNWIND(2)
Impressum