MOS Source Code
Loading...
Searching...
No Matches
ipc.hpp File Reference
#include "mos/filesystem/vfs_types.hpp"
#include "mos/types.hpp"
#include <stddef.h>
+ Include dependency graph for ipc.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void ipc_init (void)
 
PtrResult< IPCServeripc_server_create (mos::string_view name, size_t max_pending_connections)
 
PtrResult< IPCServeripc_get_server (mos::string_view name)
 
PtrResult< IPCDescriptoripc_server_accept (IPCServer *server)
 
void ipc_server_close (IPCServer *server)
 
PtrResult< IPCDescriptoripc_connect_to_server (mos::string_view name, size_t buffer_size)
 
size_t ipc_client_read (IPCDescriptor *ipc, void *buffer, size_t size)
 
size_t ipc_client_write (IPCDescriptor *ipc, const void *buffer, size_t size)
 
size_t ipc_server_read (IPCDescriptor *ipc, void *buffer, size_t size)
 
size_t ipc_server_write (IPCDescriptor *ipc, const void *buffer, size_t size)
 
void ipc_client_close_channel (IPCDescriptor *ipc)
 
void ipc_server_close_channel (IPCDescriptor *ipc)
 

Variables

const file_ops_t ipc_sysfs_file_ops
 

Function Documentation

◆ ipc_init()

void ipc_init ( void )

Definition at line 181 of file ipc.cpp.

Referenced by mos_start_kernel().

+ Here is the call graph for this function:

◆ ipc_server_create()

PtrResult< IPCServer > ipc_server_create ( mos::string_view name,
size_t max_pending_connections )

Definition at line 188 of file ipc.cpp.

Referenced by ipc_create(), and ipc_sysfs_create_server().

+ Here is the call graph for this function:

◆ ipc_get_server()

PtrResult< IPCServer > ipc_get_server ( mos::string_view name)

Definition at line 224 of file ipc.cpp.

Referenced by vfs_open_ipc().

◆ ipc_server_accept()

PtrResult< IPCDescriptor > ipc_server_accept ( IPCServer * server)

Definition at line 236 of file ipc.cpp.

Referenced by ipc_accept(), and vfs_ipc_file_read().

+ Here is the call graph for this function:

◆ ipc_server_close()

void ipc_server_close ( IPCServer * server)

Definition at line 88 of file ipc.cpp.

Referenced by ipc_control_io_close(), ipc_create(), and vfs_ipc_file_release().

+ Here is the call graph for this function:

◆ ipc_connect_to_server()

PtrResult< IPCDescriptor > ipc_connect_to_server ( mos::string_view name,
size_t buffer_size )

Definition at line 305 of file ipc.cpp.

Referenced by ipc_connect(), and vfs_open_ipc().

+ Here is the call graph for this function:

◆ ipc_client_read()

size_t ipc_client_read ( IPCDescriptor * ipc,
void * buffer,
size_t size )

Definition at line 133 of file ipc.cpp.

Referenced by ipc_client_io_read(), and vfs_ipc_file_read().

+ Here is the call graph for this function:

◆ ipc_client_write()

size_t ipc_client_write ( IPCDescriptor * ipc,
const void * buffer,
size_t size )

Definition at line 138 of file ipc.cpp.

Referenced by ipc_client_io_write(), and vfs_ipc_file_write().

+ Here is the call graph for this function:

◆ ipc_server_read()

size_t ipc_server_read ( IPCDescriptor * ipc,
void * buffer,
size_t size )

Definition at line 143 of file ipc.cpp.

Referenced by ipc_server_io_read().

+ Here is the call graph for this function:

◆ ipc_server_write()

size_t ipc_server_write ( IPCDescriptor * ipc,
const void * buffer,
size_t size )

Definition at line 148 of file ipc.cpp.

Referenced by ipc_server_io_write().

+ Here is the call graph for this function:

◆ ipc_client_close_channel()

void ipc_client_close_channel ( IPCDescriptor * ipc)

Definition at line 153 of file ipc.cpp.

Referenced by ipc_client_io_close(), and vfs_ipc_file_release().

+ Here is the call graph for this function:

◆ ipc_server_close_channel()

void ipc_server_close_channel ( IPCDescriptor * ipc)

Definition at line 167 of file ipc.cpp.

Referenced by ipc_server_io_close().

+ Here is the call graph for this function:

Variable Documentation

◆ ipc_sysfs_file_ops

const file_ops_t ipc_sysfs_file_ops
extern

Definition at line 112 of file ipc_sysfs.cpp.

Referenced by ipc_sysfs_create_ino().