- Suppose we have a generic list with nodes looking like this:
struct list_node {
struct list_node *next;
void *data;
};
- And we have an instance of a list of 'struct access_data':
struct access_data {
unsigned int clock_ticks;
int count;
};
- And a global variable pointing to the head of the list:
struct list_node *g_access_list_head;