move benchmarks to their own dir.
[minix.git] / lib / syslib / sys_privctl.c
blob47fe42706961506520a35ad77bd30370cff5f028
1 #include "syslib.h"
3 int sys_privctl(endpoint_t proc_ep, int request, void *p)
5 message m;
7 m.CTL_ENDPT = proc_ep;
8 m.CTL_REQUEST = request;
9 m.CTL_ARG_PTR = p;
11 return _taskcall(SYSTASK, SYS_PRIVCTL, &m);
14 int sys_privquery_mem(endpoint_t proc_ep, phys_bytes start, phys_bytes len)
16 message m;
18 m.CTL_ENDPT = proc_ep;
19 m.CTL_REQUEST = SYS_PRIV_QUERY_MEM;
20 m.CTL_PHYSSTART = start;
21 m.CTL_PHYSLEN = len;
23 return _taskcall(SYSTASK, SYS_PRIVCTL, &m);