xref: /minix3/minix/lib/libsys/vm_prepare.c (revision 7c48de6cc4c6d56f2277d378dba01dbac8a8c3b9)
1 #include "syslib.h"
2 
3 #include <unistd.h>
4 #include <string.h>
5 
6 int
7 vm_prepare(endpoint_t src_e, endpoint_t dst_e, int flags)
8 {
9 	message m;
10 
11 	memset(&m, 0, sizeof(m));
12 	m.m_lsys_vm_update.src = src_e;
13 	m.m_lsys_vm_update.dst = dst_e;
14 	m.m_lsys_vm_update.flags = flags;
15 
16 	return _taskcall(VM_PROC_NR, VM_RS_PREPARE, &m);
17 }
18