list_entry is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

list_entry macro

Syntax

#define list_entry(ptr, type, field) container_of(ptr, type, field)

Arguments

ptr

type

field

References

LocationText
libusbi.h:159
#define list_entry(ptr, type, member) \
list.h:125
#define list_entry(ptr, type, field) container_of(ptr, type, field)
adi_v5_jtag.c:466
prev = list_entry(el->lh.prev, struct dap_cmd, lh);
esp32_apptrace.c:318
cur = list_entry(pos, struct esp32_apptrace_block, node);
esp32_apptrace.c:329
cur = list_entry(pos, struct esp32_apptrace_block, node);
libusbi.h:163
list_entry((ptr)->next, type, member)
libusbi.h:166
list_entry((ptr)->member.next, type, member)
list.h:128
list_entry((ptr)->next, type, member)
list.h:131
list_entry((ptr)->prev, type, member)
list.h:152
for (p = list_entry((h)->next, typeof(*p), field); &(p)->field != (h); \
list.h:153
p = list_entry((p)->field.next, typeof(*p), field))
list.h:156
for (p = list_entry((h)->next, typeof(*p), field), \
list.h:157
n = list_entry((p)->field.next, typeof(*p), field); &(p)->field != (h);\
list.h:158
p = n, n = list_entry(n->field.next, typeof(*n), field))
list.h:162
p = list_entry((p)->field.next, typeof(*p), field))
list.h:169
for (n = list_entry((pos)->member.next, typeof(*pos), member); \
list.h:171
pos = n, n = list_entry(n->member.next, typeof(*n), member))
list.h:174
for (p = list_entry((h)->prev, typeof(*p), field); &(p)->field != (h); \
list.h:175
p = list_entry((p)->field.prev, typeof(*p), field))
list.h:178
for (p = list_entry((h)->prev, typeof(*p), field), \
list.h:179
n = list_entry((p)->field.prev, typeof(*p), field); &(p)->field != (h); \
list.h:180
p = n, n = list_entry(n->field.prev, typeof(*n), field))
list.h:356
for (p = list_entry(is_fwd ? (h)->next : (h)->prev, typeof(*p), field); \
list.h:358
p = list_entry(is_fwd ? (p)->field.next : (p)->field.prev, typeof(*p), field))