From 1c6bef5cabd60c58288df9caa6f184fc37b11ce1 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Fri, 31 Jan 2020 20:28:30 +0900 Subject: [PATCH] Add some more refined definitions for ipc messages to corax/ipc.h (but don't use them yet) --- include/corax/ipc.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/include/corax/ipc.h b/include/corax/ipc.h index 8d9d423..964368d 100644 --- a/include/corax/ipc.h +++ b/include/corax/ipc.h @@ -1,6 +1,7 @@ #ifndef __CORAX_IPC_H #define __CORAX_IPC_H +#include #include #define CX_MSG_RETVAL 0 @@ -15,6 +16,10 @@ #define CX_FCNTL 4 #define CX_IOCTL 5 +struct cxmsg_io { + int cio_fd; +}; + struct cxmsg_data_stdio { int sio_fd; char sio_data[]; @@ -49,5 +54,35 @@ struct cxmsg { #define PID_INIT 1 #define PID_NET 10 #define PID_STDIO 20 +#if 0 +struct cxmsg_hdr { + pid_t ch_src; + pid_t ch_dst; + u32_t ch_type; +}; + +struct cxmsg_data_read { + int cdr_fd; + size_t cdr_size; +}; + +struct cxmsg_data_retval { + int cdr_retval; + size_t cdr_size; + u8_t cdr_data[]; +}; +struct cxmsg_data_write { + int cdw_fd; + size_t cdw_size; + u8_t cdw_data[]; +}; + +struct cxmsg { + struct cxmsg_hdr cm_hdr; + union { + + } CM_data; +}; +#endif #endif /* __CORAX_IPC_H */ -- 2.47.3