make vfs & filesystems use failable copying
[minix3.git] / lib / libsys / sys_privctl.c
blob0c9632f927e4614ec8d4be58333080a6af5f2ba1
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 _kernel_call(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 _kernel_call(SYS_PRIVCTL, &m);