custom message type for VM_INFO

This commit is contained in:
Ben Gras
2014-07-26 13:53:48 +02:00
committed by Lionel Sambuc
parent 3c88d20cb5
commit 9e2efbd73d
4 changed files with 33 additions and 27 deletions

View File

@@ -773,13 +773,8 @@
# define VM_NOTIFY_SIG_IPC m1_i2
#define VM_INFO (VM_RQ_BASE+40)
# define VMI_WHAT m2_i1
# define VMI_EP m2_i2
# define VMI_COUNT m2_i3
# define VMI_PTR m2_p1
# define VMI_NEXT m2_l1
/* VMI_WHAT values. */
/* VM_INFO 'what' values. */
#define VMIW_STATS 1
#define VMIW_USAGE 2
#define VMIW_REGION 3

View File

@@ -1741,6 +1741,16 @@ typedef struct {
} mess_lsys_vm_query_exit;
_ASSERT_MSG_SIZE(mess_lsys_vm_query_exit);
typedef struct {
int what;
endpoint_t ep;
int count;
void *ptr;
vir_bytes next;
uint8_t padding[36];
} mess_lsys_vm_info;
_ASSERT_MSG_SIZE(mess_lsys_vm_info);
typedef struct {
endpoint_t m_source; /* who sent the message */
int m_type; /* what kind of message is it */
@@ -1964,6 +1974,7 @@ typedef struct {
mess_lc_vm_getphys m_lc_vm_getphys;
mess_lc_vm_shm_unmap m_lc_vm_shm_unmap;
mess_lsys_vm_query_exit m_lsys_vm_query_exit;
mess_lsys_vm_info m_lsys_vm_info;
mess_vfs_lchardriver_cancel m_vfs_lchardriver_cancel;
mess_vfs_lchardriver_openclose m_vfs_lchardriver_openclose;