MOS Source Code
|
#include "mos/ipc/ipc_io.h"
#include "mos/io/io.h"
#include "mos/ipc/ipc.h"
#include "mos/mm/slab_autoinit.h"
#include "mos/platform/platform.h"
#include <mos_stdlib.h>
Go to the source code of this file.
Classes | |
struct | ipc_server_io_t |
Functions | |
SLAB_AUTOINIT ("ipc_server_io", ipc_server_io_slab, ipc_server_io_t) | |
SLAB_AUTOINIT ("ipc_conn_io", ipc_conn_io_slab, ipc_conn_io_t) | |
static void | ipc_control_io_close (io_t *io) |
static size_t | ipc_client_io_write (io_t *io, const void *buf, size_t size) |
static size_t | ipc_client_io_read (io_t *io, void *buf, size_t size) |
static void | ipc_client_io_close (io_t *io) |
static size_t | ipc_server_io_write (io_t *io, const void *buf, size_t size) |
static size_t | ipc_server_io_read (io_t *io, void *buf, size_t size) |
static void | ipc_server_io_close (io_t *io) |
ipc_conn_io_t * | ipc_conn_io_create (ipc_t *ipc, bool is_server_side) |
Create a new IPC connection io descriptor. | |
io_t * | ipc_create (const char *name, size_t max_pending_connections) |
Create a new IPC server. | |
io_t * | ipc_accept (io_t *server) |
Accept a new connection on an IPC server. | |
io_t * | ipc_connect (const char *name, size_t buffer_size) |
Connect to an IPC servers. | |
Variables | |
static slab_t * | ipc_server_io_slab = NULL |
static slab_t * | ipc_conn_io_slab = NULL |
static const io_op_t | ipc_control_io_op |
static const io_op_t | ipc_client_io_op |
static const io_op_t | ipc_server_io_op |
SLAB_AUTOINIT | ( | "ipc_server_io" | , |
ipc_server_io_slab | , | ||
ipc_server_io_t | ) |
SLAB_AUTOINIT | ( | "ipc_conn_io" | , |
ipc_conn_io_slab | , | ||
ipc_conn_io_t | ) |
ipc_conn_io_t * ipc_conn_io_create | ( | ipc_t * | ipc, |
bool | is_server_side ) |
Create a new IPC connection io descriptor.
ipc | The IPC object to create the connection for |
is_server_side | Whether this is the server side of the connection |
Definition at line 96 of file ipc_io.c.
Referenced by ipc_accept(), ipc_connect(), and vfs_ipc_file_read().
Create a new IPC server.
name | The name of the server |
max_pending_connections | The maximum number of pending connections to allow |
Definition at line 19 of file ipc_io.c.
Referenced by ipc_create().
Definition at line 22 of file ipc_io.c.
Referenced by ipc_conn_io_create().
|
static |
Definition at line 36 of file ipc_io.c.
Referenced by ipc_create().
|
static |
Definition at line 84 of file ipc_io.c.
Referenced by ipc_conn_io_create().
|
static |
Definition at line 90 of file ipc_io.c.
Referenced by ipc_conn_io_create().