minlib: Add vm_query_exit

This commit is contained in:
Arun Thomas 2011-08-12 17:05:08 +02:00
parent 35cc7fbeb8
commit 7b70f548e4

View file

@ -21,3 +21,13 @@ PUBLIC int vm_query_exit(int *endpt)
*endpt = m.VM_QUERY_RET_PT;
return (m.VM_QUERY_IS_MORE ? 1 : 0);
}
PUBLIC int vm_watch_exit(endpoint_t ep)
{
message m;
int r;
memset(&m, 0, sizeof(m));
m.VM_WE_EP = ep;
return _syscall(VM_PROC_NR, VM_WATCH_EXIT, &m);
}