]> Zhao Yanbai Git Server - minix.git/commitdiff
minlib: Add vm_query_exit
authorArun Thomas <arun@minix3.org>
Fri, 12 Aug 2011 15:05:08 +0000 (17:05 +0200)
committerArun Thomas <arun@minix3.org>
Fri, 12 Aug 2011 15:15:42 +0000 (17:15 +0200)
lib/nbsd_libminlib/vm_query_exit.c

index f590283c6b14be563f6d83a57f223480c12bfd27..f6521872873fe1b2d9f785de54371b5d83207c09 100644 (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);
+}