1ELF_GETDATA(3)            Libelf Programmer's Manual            ELF_GETDATA(3)
2
3
4

NAME

6       elf_getdata - Get washed data of section
7

SYNOPSIS

9       #include <libelf.h>
10
11       Elf_Data * elf_getdata (Elf_Scn *scn, Elf_Data *data);
12

DESCRIPTION

14       The elf_getdata() function allows the user to retrieve the data buffers
15       of the section scn
16        . There can be more than one buffer if the user explicitly added them.
17       When a file is read the libelf library creates exactly one data buffer.
18
19       The  first buffer in the list can be obtained by passing a null pointer
20       in the parameter data. To get  the  next  data  buffer  the  previously
21       returned  value  must  be passed in the data parameter. If there are no
22       more buffer left in the list a null pointer is returned.
23
24       If the data parameter is not a null pointer it must be a descriptor for
25       a  buffer  associated  with the section scn . If this is not the case a
26       null pointer is returned. To facilitate error handling elf_getdata also
27       returns a null pointer if the scn parameter is a null pointer.
28
29
30
31Libelf                            2017-08-17                    ELF_GETDATA(3)
Impressum