From: Arun Thomas Date: Fri, 12 Aug 2011 15:05:08 +0000 (+0200) Subject: minlib: Add vm_query_exit X-Git-Tag: v3.2.0~371 X-Git-Url: http://zhaoyanbai.com/repos/%22../static/icons/mdoc.3.txt?a=commitdiff_plain;h=7b70f548e446c739c6d451773cc8377a7e732184;p=minix.git minlib: Add vm_query_exit --- diff --git a/lib/nbsd_libminlib/vm_query_exit.c b/lib/nbsd_libminlib/vm_query_exit.c index f590283c6..f65218728 100644 --- a/lib/nbsd_libminlib/vm_query_exit.c +++ b/lib/nbsd_libminlib/vm_query_exit.c @@ -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); +}