minix/lib/libsys/sys_setgrant.c
Lionel Sambuc f06c676a47 Message type for SYS_SETGRANT
Change-Id: I542f839d7992d3348fef19c51bfcb58bb408d9f4
2014-07-28 17:05:48 +02:00

14 lines
261 B
C

#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);
}