1GET_KERNEL_SYMS(2)           Linux Module Support           GET_KERNEL_SYMS(2)
2
3
4

NAME

6       get_kernel_syms - retrieve exported kernel and module symbols
7

SYNOPSIS

9       #include <linux/module.h>
10
11       int get_kernel_syms(struct kernel_sym *table);
12

DESCRIPTION

14       If  table  is  NULL,  get_kernel_syms()  returns  the number of symbols
15       available for query.  Otherwise it fills in a table of structures:
16
17              struct kernel_sym {
18                  unsigned long value;
19                  char          name[60];
20              };
21
22       The symbols are interspersed with magic symbols of  the  form  #module-
23       name with the kernel having an empty name.  The value associated with a
24       symbol of this form is the address at which the module is loaded.
25
26       The symbols exported from each module follow their magic module tag and
27       the modules are returned in the reverse of the order in which they were
28       loaded.
29

RETURN VALUE

31       Returns the number of symbols copied to table.  There  is  no  possible
32       error return.
33

CONFORMING TO

35       get_kernel_syms() is Linux specific.
36

BUGS

38       There is no way to indicate the size of the buffer allocated for table.
39       If symbols have been added to the kernel since the program queried  for
40       the symbol table size, memory will be corrupted.
41
42       The length of exported symbol names is limited to 59 characters.
43
44       Because  of  these limitations, this system call is deprecated in favor
45       of query_module(2) (which is itself nowadays  deprecated  in  favor  of
46       other interfaces described on its manual page).
47

NOTES

49       This  system  call is only present on Linux up until kernel 2.4; it was
50       removed in Linux 2.6.
51

SEE ALSO

53       create_module(2), delete_module(2), init_module(2), query_module(2)
54
55
56
57Linux                                2002                   GET_KERNEL_SYMS(2)
Impressum