minix3/lib/libsys/sys_setgrant.c

15 lines
261 B
C
Raw Permalink Normal View History

2020-02-21 00:59:27 +05:30
#include "syslib.h"
#include <minix/safecopies.h>
int sys_setgrant(cp_grant_t *grants, int ngrants)
{
message m;
m.m_lsys_krn_sys_setgrant.addr = (vir_bytes)grants;
m.m_lsys_krn_sys_setgrant.size = ngrants;
return _kernel_call(SYS_SETGRANT, &m);
}