Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
|
Pipe Structure. More...
#include <kernel.h>
Data Fields | ||
unsigned char * | buffer | |
Pipe buffer: may be NULL. | ||
size_t | size | |
Buffer size. | ||
size_t | bytes_used | |
Number of bytes used in buffer. | ||
size_t | read_index | |
Where in buffer to read from. | ||
size_t | write_index | |
Where in buffer to write. | ||
struct k_spinlock | lock | |
Synchronization lock. | ||
struct { | ||
_wait_q_t readers | ||
Reader wait queue. More... | ||
_wait_q_t writers | ||
Writer wait queue. More... | ||
} | wait_q | |
uint8_t | flags | |
Wait queue. | ||
Pipe Structure.
unsigned char* k_pipe::buffer |
Pipe buffer: may be NULL.
size_t k_pipe::bytes_used |
Number of bytes used in buffer.
uint8_t k_pipe::flags |
Wait queue.
Flags
struct k_spinlock k_pipe::lock |
Synchronization lock.
size_t k_pipe::read_index |
Where in buffer to read from.
_wait_q_t k_pipe::readers |
Reader wait queue.
size_t k_pipe::size |
Buffer size.
struct { ... } k_pipe::wait_q |
size_t k_pipe::write_index |
Where in buffer to write.
_wait_q_t k_pipe::writers |
Writer wait queue.