# slist Struct Reference

A singly linked list. More...

`#include <slist.h>`

Collaboration diagram for slist:

[legend]

## Data Fields
struct slist_node | first
struct slist_node * | last

## Detailed Description

A singly linked list.

Definition at line 62 of file slist.h.

## Field Documentation

struct slist_node slist::first`[read]`

Sentinel node which is always at the head of the list. The last node in the list points back at this node.

Definition at line 67 of file slist.h.

Referenced by slist_borrow_to_tail(), slist_give_back_head(), slist_init(), slist_insert_head(), slist_insert_tail(), slist_is_empty(), slist_node_is_valid(), slist_peek_head_node(), and slist_pop_head_node().

struct slist_node* slist::last`[read]`

Pointer to the last node in the list. Initially points at slist::first.

Definition at line 72 of file slist.h.

Referenced by slist_borrow_to_tail(), slist_give_back_head(), slist_init(), slist_insert_head(), slist_insert_tail(), slist_node_is_last(), slist_peek_tail_node(), slist_pop_head_node(), usbb_udc_dma_interrupt(), usbb_udc_submit_in_queue(), and usbb_udc_submit_out_queue().

The documentation for this struct was generated from the following file:

- include/slist.h