MOS Source Code
Loading...
Searching...
No Matches
ipc_io.h File Reference
#include "mos/io/io.h"
#include "mos/ipc/ipc.h"
#include "mos/platform/platform.h"
+ Include dependency graph for ipc_io.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ipc_conn_io_t
 

Functions

io_tipc_create (const char *name, size_t max_pending_connections)
 Create a new IPC server.
 
io_tipc_accept (io_t *server)
 Accept a new connection on an IPC server.
 
io_tipc_connect (const char *name, size_t buffer_size)
 Connect to an IPC servers.
 
ipc_conn_io_tipc_conn_io_create (ipc_t *ipc, bool is_server_side)
 Create a new IPC connection io descriptor.
 

Function Documentation

◆ ipc_create()

io_t * ipc_create ( const char * name,
size_t max_pending_connections )

Create a new IPC server.

Parameters
nameThe name of the server
max_pending_connectionsThe maximum number of pending connections to allow
Returns
A new io_t object that represents the server, or an error code on failure
Note
The io_t returned by this function is only to accept new connections or close the server, reading or writing to it will fail.

Definition at line 106 of file ipc_io.c.

Referenced by ipc_create().

+ Here is the call graph for this function:

◆ ipc_accept()

io_t * ipc_accept ( io_t * server)

Accept a new connection on an IPC server.

Parameters
serverThe server to accept a connection on
Returns
An io_t for the server side of the connection, or an error code on failure

Definition at line 121 of file ipc_io.c.

+ Here is the call graph for this function:

◆ ipc_connect()

io_t * ipc_connect ( const char * name,
size_t buffer_size )

Connect to an IPC servers.

Parameters
nameThe name of the server to connect to
buffer_sizeThe size of a shared-memory buffer to use for the connection
Returns
A new io_t object that represents the connection, or an error code on failure

Definition at line 138 of file ipc_io.c.

Referenced by ipc_connect().

+ Here is the call graph for this function:

◆ ipc_conn_io_create()

ipc_conn_io_t * ipc_conn_io_create ( ipc_t * ipc,
bool is_server_side )

Create a new IPC connection io descriptor.

Parameters
ipcThe IPC object to create the connection for
is_server_sideWhether this is the server side of the connection
Returns
ipc_conn_io_t* A new IPC connection io descriptor

Definition at line 96 of file ipc_io.c.

Referenced by ipc_accept(), ipc_connect(), and vfs_ipc_file_read().

+ Here is the call graph for this function: