![]() |
MOS Source Code
|
#include <limits.h>
#include "mos/ipc/pipe.hpp"
#include "mos/platform/platform.hpp"
#include "mos/syslog/printk.hpp"
#include "mos/tasks/schedule.hpp"
#include "mos/tasks/signal.hpp"
#include "mos/tasks/wait.hpp"
#include <mos/lib/sync/spinlock.hpp>
#include <mos_stdlib.hpp>
Go to the source code of this file.
Macros | |
#define | pr_fmt(fmt) |
#define | PIPE_MAGIC MOS_FOURCC('P', 'I', 'P', 'E') |
#define | advance_buffer(buffer, bytes) |
Functions | |
size_t | pipe_write (pipe_t *pipe, const void *buf, size_t size) |
size_t | pipe_read (pipe_t *pipe, void *buf, size_t size) |
bool | pipe_close_one_end (pipe_t *pipe) |
Close one end of the pipe, so that the other end will get EOF. | |
PtrResult< pipe_t > | pipe_create (size_t bufsize) |
static size_t | pipeio_io_read (io_t *io, void *buf, size_t size) |
static size_t | pipeio_io_write (io_t *io, const void *buf, size_t size) |
static void | pipeio_io_close (io_t *io) |
pipeio_t * | pipeio_create (pipe_t *pipe) |
Variables | |
static const io_op_t | pipe_io_ops |
#define PIPE_MAGIC MOS_FOURCC('P', 'I', 'P', 'E') |
Definition at line 18 of file pipe.cpp.
Referenced by pipe_close_one_end(), pipe_create(), pipe_read(), and pipe_write().
#define advance_buffer | ( | buffer, | |
bytes ) |
Definition at line 22 of file pipe.cpp.
Referenced by ipc_client_write(), ipc_server_write(), and pipeio_io_write().
Definition at line 82 of file pipe.cpp.
Referenced by ipc_client_read(), ipc_server_read(), and pipeio_io_read().
Close one end of the pipe, so that the other end will get EOF.
pipe | The pipe to close one end of. |
Definition at line 136 of file pipe.cpp.
Referenced by ipc_client_close_channel(), ipc_server_close_channel(), and pipeio_io_close().
Definition at line 167 of file pipe.cpp.
Referenced by ipc_server_accept(), and MOS_STATIC_ASSERT().
Definition at line 221 of file pipe.cpp.
Referenced by MOS_STATIC_ASSERT().
|
static |
Definition at line 215 of file pipe.cpp.
Referenced by pipeio_create().