1 .\" Copyright (C) 1996 Free Software Foundation, Inc.
3 .\" SPDX-License-Identifier: GPL-1.0-or-later
5 .\" 2006-02-09, some reformatting by Luc Van Oostenryck; some
6 .\" reformatting and rewordings by mtk
8 .TH GET_KERNEL_SYMS 2 2022-09-09 "Linux man-pages (unreleased)"
10 get_kernel_syms \- retrieve exported kernel and module symbols
13 .B #include <linux/module.h>
15 .BI "[[deprecated]] int get_kernel_syms(struct kernel_sym *" table );
19 This system call is present only in kernels before Linux 2.6.
24 .BR get_kernel_syms ()
25 returns the number of symbols available for query.
26 Otherwise, it fills in a table of structures:
37 The symbols are interspersed with magic symbols of the form
39 with the kernel having an empty name.
40 The value associated with a symbol of this form is the address at
41 which the module is loaded.
43 The symbols exported from each module follow their magic module tag
44 and the modules are returned in the reverse of the
45 order in which they were loaded.
47 On success, returns the number of symbols copied to
49 On error, \-1 is returned and
51 is set to indicate the error.
53 There is only one possible error return:
56 .BR get_kernel_syms ()
57 is not supported in this version of the kernel.
59 This system call is present on Linux only up until kernel 2.4;
60 it was removed in Linux 2.6.
61 .\" Removed in Linux 2.5.48
63 .BR get_kernel_syms ()
66 This obsolete system call is not supported by glibc.
67 No declaration is provided in glibc headers, but, through a quirk of history,
68 glibc versions before 2.23 did export an ABI for this system call.
69 Therefore, in order to employ this system call,
70 it was sufficient to manually declare the interface in your code;
71 alternatively, you could invoke the system call using
74 There is no way to indicate the size of the buffer allocated for
76 If symbols have been added to the kernel since the
77 program queried for the symbol table size, memory will be corrupted.
79 The length of exported symbol names is limited to 59 characters.
81 Because of these limitations, this system call is deprecated in
84 (which is itself nowadays deprecated
85 in favor of other interfaces described on its manual page).
87 .BR create_module (2),
88 .BR delete_module (2),