Go to the source code of this file.
Define Documentation
Function Documentation
Initialize the given fifo.
- Parameters:
-
f | The fifo |
size | The number of entries |
- Returns:
- fifo_err_ok or < 0 on error (see fifo_err).
Remove an element from the fifo, blocking.
- Parameters:
-
f | The fifo |
e | Pointer to the popped element. |
- Returns:
- The new number of entries or < 0 on error (see fifo_err).
Remove an element from the fifo, non-blocking.
- Parameters:
-
f | The fifo |
e | Pointer to the popped element. |
- Returns:
- The new number of entries or < 0 on error (see fifo_err).
Add an element to the fifo, blocking.
- Parameters:
-
f | The fifo |
e | The entry to add. |
- Returns:
- The new number of entries or < 0 on error (see fifo_err).
Add an element to the fifo, non-blocking.
- Parameters:
-
f | The fifo |
e | The entry to add. |
- Returns:
- The new number of entries or < 0 on error (see fifo_err).
Variable Documentation
The ID of the last error.