crdup Kernel Service
Purpose
Copies a credentials structure to a new one.
Syntax
#include <sys/cred.h>
struct ucred * crdup ( cr)
struct ucred * cr;
struct ucred * cr;
Parameter
Item | Description |
---|---|
cr | Pointer to the credentials structure that is to be copied. |
Description
The crdup kernel service allocates a new credentials structure that is initialized from the contents of the cr parameter.
Execution Environment
The crdup kernel service can be called from the process environment only.
Return Values
Item | Description |
---|---|
Nonzero value | A pointer to a newly allocated and initialized credentials structure. |
Zero value | An error occurred when the kernel service was attempting to allocate pinned memory for the credentials structure. |