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

#include <pipe.h>

+ 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
 

Detailed Description

Definition at line 10 of file pipe.h.

Member Data Documentation

◆ magic

u32 magic

Definition at line 12 of file pipe.h.

◆ waitlist

waitlist_t waitlist

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

Definition at line 13 of file pipe.h.

◆ lock

spinlock_t lock

protects the buffer_pos (and thus the buffer)

Definition at line 14 of file pipe.h.

◆ other_closed

bool other_closed

true if the other end of the pipe has been closed

Definition at line 15 of file pipe.h.

Referenced by pipeio_io_close().

◆ buffers

void* buffers

Definition at line 16 of file pipe.h.

◆ buffer_pos

ring_buffer_pos_t buffer_pos

Definition at line 17 of file pipe.h.


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