![]() |
MOS Source Code
|
#include "libipc/ipc.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <strings.h>#include <unistd.h>Go to the source code of this file.
Macros | |
| #define | do_read(fd, buffer, size) |
| #define | do_write(fd, buffer, size) |
| #define | do_warn(fmt, ...) |
Functions | |
| MOS_STATIC_ASSERT (sizeof(size_t)==sizeof(uint64_t), "size_t must be 64 bits") | |
| ipc_msg_t * | ipc_msg_create (size_t size) |
| Create a new IPC message. | |
| void | ipc_msg_destroy (ipc_msg_t *buffer) |
| Destroy an IPC message. | |
| ipc_msg_t * | ipc_read_msg (ipcfd_t fd) |
| Read an IPC message. | |
| bool | ipc_write_msg (ipcfd_t fd, ipc_msg_t *buffer) |
| Write an IPC message. | |
| bool | ipc_write_as_msg (ipcfd_t fd, const char *data, size_t size) |
| size_t | ipc_read_as_msg (ipcfd_t fd, char *buffer, size_t buffer_size) |
Definition at line 20 of file libipc.cpp.
Referenced by ipc_read_as_msg(), and ipc_read_msg().
Definition at line 21 of file libipc.cpp.
Referenced by ipc_write_as_msg(), ipc_write_msg(), Console::on_write(), Console::Write(), and Console::WriteColored().
| #define do_warn | ( | fmt, | |
| ... ) |
Definition at line 22 of file libipc.cpp.
Referenced by ipc_read_as_msg(), ipc_read_msg(), ipc_write_as_msg(), and ipc_write_msg().
Create a new IPC message.
| size | The size of the message. |
Definition at line 27 of file libipc.cpp.
Referenced by ipc_read_msg().
Destroy an IPC message.
| buffer | The message. |
Definition at line 34 of file libipc.cpp.
Referenced by ipc_read_msg(), rpc_call_exec(), and rpc_handle_client().
Read an IPC message.
| fd | The file descriptor. |
Definition at line 39 of file libipc.cpp.
Referenced by rpc_call_exec(), and rpc_handle_client().
Write an IPC message.
| fd | The file descriptor. |
| buffer | The message. |
Definition at line 68 of file libipc.cpp.
Definition at line 87 of file libipc.cpp.
Referenced by rpc_call_exec(), and rpc_handle_client().
Definition at line 106 of file libipc.cpp.