minix/lib/libsys/vm_procctl.c
Ben Gras ee4016155e vm: add third-party mmap() mode and PROCCTL
these two functions will be used to support all exec() functionality
going into a single library shared by RS and VFS and exec() knowledge
leaving VM.

	. third-party mmap: allow certain processes (VFS, RS) to
	  do mmap() on behalf of another process
	. PROCCTL: used to free and clear a process' address space
2012-06-07 12:43:16 +02:00

23 lines
508 B
C

#include "syslib.h"
#include <minix/vm.h>
#include <string.h>
/*===========================================================================*
* vm_exit *
*===========================================================================*/
int vm_procctl(endpoint_t ep, int param)
{
message m;
int result;
memset(&m, 0, sizeof(m));
m.VMPCTL_WHO = ep;
m.VMPCTL_PARAM = param;
result = _taskcall(VM_PROC_NR, VM_PROCCTL, &m);
return(result);
}