1 .\" Copyright (C) 1996 Free Software Foundation, Inc.
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" This file is distributed according to the GNU General Public License.
7 .\" 2006-02-09, some reformatting by Luc Van Oostenryck; some
8 .\" reformatting and rewordings by mtk
10 .TH GET_KERNEL_SYMS 2 2012-10-18 "Linux" "Linux Programmer's Manual"
12 get_kernel_syms \- retrieve exported kernel and module symbols
15 .B #include <linux/module.h>
17 .BI "int get_kernel_syms(struct kernel_sym *" table );
21 This system call is present only in kernels before Linux 2.6.
26 .BR get_kernel_syms ()
27 returns the number of symbols available for query.
28 Otherwise it fills in a table of structures:
39 The symbols are interspersed with magic symbols of the form
41 with the kernel having an empty name.
42 The value associated with a symbol of this form is the address at
43 which the module is loaded.
45 The symbols exported from each module follow their magic module tag
46 and the modules are returned in the reverse of the
47 order in which they were loaded.
49 On success, returns the number of symbols copied to
51 On error, \-1 is returned and
55 There is only one possible error return:
58 .BR get_kernel_syms ()
59 is not supported in this version of the kernel.
61 This system call is present on Linux only up until kernel 2.4;
62 it was removed in Linux 2.6.
63 .\" Removed in Linux 2.5.48
65 .BR get_kernel_syms ()
68 There is no way to indicate the size of the buffer allocated for
70 If symbols have been added to the kernel since the
71 program queried for the symbol table size, memory will be corrupted.
73 The length of exported symbol names is limited to 59 characters.
75 Because of these limitations, this system call is deprecated in
78 (which is itself nowadays deprecated
79 in favor of other interfaces described on its manual page).
81 .BR create_module (2),
82 .BR delete_module (2),