Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
k_pipe Struct Reference

#include <kernel.h>

Data Fields

unsigned char * buffer
 
size_t size
 
size_t bytes_used
 
size_t read_index
 
size_t write_index
 
struct k_spinlock lock
 
struct {
   _wait_q_t   readers
 
   _wait_q_t   writers
 
wait_q
 
uint8_t flags
 

Detailed Description

Pipe Structure

Field Documentation

◆ buffer

unsigned char* k_pipe::buffer

Pipe buffer: may be NULL

◆ bytes_used

size_t k_pipe::bytes_used

bytes used in buffer

◆ flags

uint8_t k_pipe::flags

Wait queue Flags

◆ lock

struct k_spinlock k_pipe::lock

Synchronization lock

◆ read_index

size_t k_pipe::read_index

Where in buffer to read from

◆ readers

_wait_q_t k_pipe::readers

Reader wait queue

◆ size

size_t k_pipe::size

Buffer size

◆ 

struct { ... } k_pipe::wait_q

◆ write_index

size_t k_pipe::write_index

Where in buffer to write

◆ writers

_wait_q_t k_pipe::writers

Writer wait queue


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