ex

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Embed: (wiki syntax)

« Back to documentation index

ns_list_link Struct Reference

ns_list_link Struct Reference

The type for the link member in the user's entry structure. More...

#include <ns_list.h>

Data Fields

void * next
 Pointer to next entry, or NULL if none.
void ** prev
 Pointer to previous entry's (or head's) next pointer.

Detailed Description

The type for the link member in the user's entry structure.

Users should not access this member directly - just pass its name to the list head macros. The funny prev pointer simplifies common operations (eg insertion, removal), at the expense of complicating rare reverse iteration.

NB - the list implementation relies on next being the first member.

Definition at line 206 of file ns_list.h.


Field Documentation

void* next

Pointer to next entry, or NULL if none.

Definition at line 208 of file ns_list.h.

void** prev

Pointer to previous entry's (or head's) next pointer.

Definition at line 209 of file ns_list.h.