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
10 #include <minix/safecopies.h>
12 /*===========================================================================*
14 *===========================================================================*/
15 PUBLIC
int do_setgrant(m_ptr
)
21 /* Who wants to set a parameter? */
22 rp
= proc_addr(who_p
);
24 /* Copy grant table set in priv. struct. */
25 if (RTS_ISSET(rp
, NO_PRIV
) || !(priv(rp
))) {
28 _K_SET_GRANT_TABLE(rp
,
29 (vir_bytes
) m_ptr
->SG_ADDR
,