custom types for RS_INIT, RS_UPDATE, and others
This commit is contained in:
@@ -487,25 +487,6 @@
|
||||
#define RS_INIT (RS_RQ_BASE + 20) /* service init message */
|
||||
#define RS_LU_PREPARE (RS_RQ_BASE + 21) /* prepare to update message */
|
||||
|
||||
# define RS_CMD_ADDR m1_p1 /* command string */
|
||||
# define RS_CMD_LEN m1_i1 /* length of command */
|
||||
# define RS_PERIOD m1_i2 /* heartbeat period */
|
||||
# define RS_DEV_MAJOR m1_i3 /* major device number */
|
||||
|
||||
# define RS_ENDPOINT m1_i1 /* endpoint number in reply */
|
||||
|
||||
# define RS_NAME m1_p1 /* name */
|
||||
# define RS_NAME_LEN m1_i1 /* namelen */
|
||||
|
||||
# define RS_INIT_RESULT m7_i1 /* init result */
|
||||
# define RS_INIT_TYPE m7_i2 /* init type */
|
||||
# define RS_INIT_RPROCTAB_GID m7_i3 /* init rproc table gid */
|
||||
# define RS_INIT_OLD_ENDPOINT m7_i4 /* init old endpoint */
|
||||
|
||||
# define RS_LU_RESULT m1_i1 /* live update result */
|
||||
# define RS_LU_STATE m1_i2 /* state required to update */
|
||||
# define RS_LU_PREPARE_MAXTIME m1_i3 /* the max time to prepare */
|
||||
|
||||
/*===========================================================================*
|
||||
* Messages for the Data Store Server *
|
||||
*===========================================================================*/
|
||||
|
||||
@@ -1880,6 +1880,33 @@ typedef struct {
|
||||
} mess_lsys_kern_vsafecopy;
|
||||
_ASSERT_MSG_SIZE(mess_lsys_kern_vsafecopy);
|
||||
|
||||
typedef struct {
|
||||
int result;
|
||||
int type;
|
||||
cp_grant_id_t rproctab_gid;
|
||||
endpoint_t old_endpoint;
|
||||
uint8_t padding[40];
|
||||
} mess_rs_init;
|
||||
_ASSERT_MSG_SIZE(mess_rs_init);
|
||||
|
||||
typedef struct {
|
||||
int result;
|
||||
int state;
|
||||
int prepare_maxtime;
|
||||
uint8_t padding[44];
|
||||
} mess_rs_update;
|
||||
_ASSERT_MSG_SIZE(mess_rs_update);
|
||||
|
||||
typedef struct {
|
||||
int len;
|
||||
int name_len;
|
||||
endpoint_t endpoint;
|
||||
void *addr;
|
||||
const char *name;
|
||||
uint8_t padding[36];
|
||||
} mess_rs_req;
|
||||
_ASSERT_MSG_SIZE(mess_rs_req);
|
||||
|
||||
typedef struct {
|
||||
endpoint_t m_source; /* who sent the message */
|
||||
int m_type; /* what kind of message is it */
|
||||
@@ -2120,6 +2147,9 @@ typedef struct {
|
||||
mess_lsys_vm_unmap_phys m_lsys_vm_unmap_phys;
|
||||
mess_lsys_kern_safecopy m_lsys_kern_safecopy;
|
||||
mess_lsys_kern_vsafecopy m_lsys_kern_vsafecopy;
|
||||
mess_rs_init m_rs_init;
|
||||
mess_rs_update m_rs_update;
|
||||
mess_rs_req m_rs_req;
|
||||
|
||||
mess_vfs_lchardriver_cancel m_vfs_lchardriver_cancel;
|
||||
mess_vfs_lchardriver_openclose m_vfs_lchardriver_openclose;
|
||||
|
||||
Reference in New Issue
Block a user