crexport Kernel Service

Purpose

Copies an internal format credentials structure to an external format credentials structure.

Syntax

#include <sys/cred.h>

void crexport (src, dst)
struct ucred * src;
struct ucred_ext * dst;

Parameter

Item Description
src Pointer to the internal credentials structure.
dst Pointer to the external credentials structure.

Description

The crexport kernel service copies from the internal credentials structure referenced by src into the external credentials structure referenced by dst. The external credentials structure is guaranteed to be compatible between releases. Fields within a ucred structure must not be referenced directly as the field names and locations within that structure are subject to change.

Execution Environment

The crexport kernel service can be called from the process environment only.

Return Values

This kernel service does not have a return value.