DDI_GET_CRED(9F) Kernel Functions for Drivers DDI_GET_CRED(9F)

ddi_get_cred - returns a pointer to the credential structure of the caller

#include <sys/types.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>
cred_t *ddi_get_cred(void)

illumos DDI specific (illumos 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
April 11, 1991 OmniOS