1 /* The kernel call implemented in this file:
4 * The parameters for this kernel call are:
5 * SG_ADDR address of grant table in own address space
6 * SG_SIZE number of entries
9 #include "kernel/system.h"
10 #include <minix/safecopies.h>
12 /*===========================================================================*
14 *===========================================================================*/
15 int do_setgrant(struct proc
* caller
, message
* m_ptr
)
19 /* Copy grant table set in priv. struct. */
20 if (RTS_ISSET(caller
, RTS_NO_PRIV
) || !(priv(caller
))) {
23 _K_SET_GRANT_TABLE(caller
,
24 (vir_bytes
) m_ptr
->SG_ADDR
,