6 /* return -1, when the query itself or the processing of query has errors.
7 * return 1, when there are more processes waiting to be queried.
8 * return 0, when there are no more processes.
9 * note that for the return value of 0 and 1, the 'endpt' is set accordingly.
11 int vm_query_exit(int *endpt
)
16 r
= _syscall(VM_PROC_NR
, VM_QUERY_EXIT
, &m
);
22 *endpt
= m
.VM_QUERY_RET_PT
;
23 return (m
.VM_QUERY_IS_MORE
? 1 : 0);
26 int vm_watch_exit(endpoint_t ep
)
30 memset(&m
, 0, sizeof(m
));
32 return _syscall(VM_PROC_NR
, VM_WATCH_EXIT
, &m
);