GET_PRIVID: return the ID of a process' privilege structure.

This commit is contained in:
Philip Homburg 2007-04-23 13:28:14 +00:00
parent 2b2d3d5131
commit d80e25068c

View file

@ -150,7 +150,13 @@ register message *m_ptr; /* pointer to request message */
break;
}
case GET_PRIVID:
if (!isokendpt(m_ptr->I_VAL_LEN2_E, &proc_nr))
return EINVAL;
return proc_addr(proc_nr)->p_priv->s_id;
default:
kprintf("do_getinfo: invalid request %d\n", m_ptr->I_REQUEST);
return(EINVAL);
}