minix/lib/libsys/vm_fork.c

26 lines
560 B
C
Raw Normal View History

#include "syslib.h"
#include <string.h>
#include <minix/vm.h>
/*===========================================================================*
* vm_fork *
*===========================================================================*/
2012-03-25 20:25:53 +02:00
int vm_fork(endpoint_t ep, int slot, endpoint_t *childep)
{
message m;
int result;
memset(&m, 0, sizeof(m));
m.VMF_ENDPOINT = ep;
m.VMF_SLOTNO = slot;
result = _taskcall(VM_PROC_NR, VM_FORK, &m);
*childep = m.VMF_CHILD_ENDPOINT;
return(result);
}