MOS Source Code
Loading...
Searching...
No Matches
pipe_t Struct Reference

#include <pipe.hpp>

+ Inheritance diagram for pipe_t:
+ Collaboration diagram for pipe_t:

Public Attributes

u32 magic
 
waitlist_t waitlist
 for both reader and writer, only one party can wait on the pipe at a time
 
spinlock_t lock
 protects the buffer_pos (and thus the buffer)
 
bool other_closed
 true if the other end of the pipe has been closed
 
voidbuffers
 
ring_buffer_pos_t buffer_pos
 

Additional Inherited Members

- Static Public Attributes inherited from NamedType<"Pipe">
static constexpr mos::string_view type_name
 

Detailed Description

Definition at line 11 of file pipe.hpp.

Member Data Documentation

◆ magic

u32 magic

Definition at line 13 of file pipe.hpp.

Referenced by pipe_read(), and pipe_write().

◆ waitlist

waitlist_t waitlist

for both reader and writer, only one party can wait on the pipe at a time

Definition at line 14 of file pipe.hpp.

Referenced by pipe_read(), and pipe_write().

◆ lock

spinlock_t lock

protects the buffer_pos (and thus the buffer)

Definition at line 15 of file pipe.hpp.

Referenced by pipe_read(), and pipe_write().

◆ other_closed

bool other_closed

true if the other end of the pipe has been closed

Definition at line 16 of file pipe.hpp.

Referenced by PipeIOImpl::on_closed(), pipe_read(), and pipe_write().

◆ buffers

void* buffers

Definition at line 17 of file pipe.hpp.

Referenced by pipe_read(), and pipe_write().

◆ buffer_pos

ring_buffer_pos_t buffer_pos

Definition at line 18 of file pipe.hpp.

Referenced by pipe_read(), and pipe_write().


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