# define VM_RS_SYS m2_i2
#define VM_QUERY_EXIT (VM_RQ_BASE+38)
-# define VM_QUERY_RET_PT m2_i1
-# define VM_QUERY_IS_MORE m2_i2
#define VM_NOTIFY_SIG (VM_RQ_BASE+39)
# define VM_NOTIFY_SIG_ENDPOINT m1_i1
} mess_lsys_vm_getref;
_ASSERT_MSG_SIZE(mess_lsys_vm_getref);
+typedef struct {
+ endpoint_t ret_pt;
+ int is_more;
+ uint8_t padding[48];
+} mess_lsys_vm_query_exit;
+_ASSERT_MSG_SIZE(mess_lsys_vm_query_exit);
+
typedef struct {
endpoint_t m_source; /* who sent the message */
int m_type; /* what kind of message is it */
mess_lsys_vm_getref m_lsys_vm_getref;
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_vfs_lchardriver_cancel m_vfs_lchardriver_cancel;
mess_vfs_lchardriver_openclose m_vfs_lchardriver_openclose;
if (endpt == NULL)
return EFAULT;
- *endpt = m.VM_QUERY_RET_PT;
- return (m.VM_QUERY_IS_MORE ? 1 : 0);
+ *endpt = m.m_lsys_vm_query_exit.ret_pt;
+ return (m.m_lsys_vm_query_exit.is_more ? 1 : 0);
}
int
if (!array[i].avail)
nr++;
}
- m->VM_QUERY_RET_PT = ep;
- m->VM_QUERY_IS_MORE = (nr > 0);
+ m->m_lsys_vm_query_exit.ret_pt = ep;
+ m->m_lsys_vm_query_exit.is_more = (nr > 0);
return OK;
}