Lines Matching refs:offset
1 /* Get note information at the supplied offset.
40 gelf_getnote (data, offset, result, name_offset, desc_offset)
42 size_t offset;
64 offset is OK. */
65 if (unlikely (offset > data->d_size
66 || data->d_size - offset < sizeof (GElf_Nhdr)))
69 offset = 0;
73 const GElf_Nhdr *n = data->d_buf + offset;
74 offset += sizeof *n;
80 if (unlikely (offset > data->d_size
81 || data->d_size - offset < namesz
83 offset = 0;
86 *name_offset = offset;
87 offset += namesz;
88 if (unlikely (offset > data->d_size
89 || data->d_size - offset < descsz
91 offset = 0;
94 *desc_offset = offset;
95 offset += descsz;
103 return offset;