1 #include "syslib.h" 2 #include <unistd.h> 3 #include <string.h> 4 5 int 6 vm_memctl(endpoint_t ep, int req) 7 { 8 message m; 9 10 memset(&m, 0, sizeof(m)); 11 m.VM_RS_CTL_ENDPT = ep; 12 m.VM_RS_CTL_REQ = req; 13 14 return _taskcall(VM_PROC_NR, VM_RS_MEMCTL, &m); 15 } 16