#include <sys/types.h> #include <sys/ddi.h> #include <sys/sunddi.h>
Solaris DDI specific (Solaris DDI).
ddi_get_cred() returns a pointer to the user credential structure of the caller.
ddi_get_cred() returns a pointer to the caller's credential structure.
ddi_get_cred() can be called from user context only.
Writing Device Drivers