crfree Kernel Service
Purpose
Releases a reference count on a credentials structure.
Syntax
#include <sys/cred.h>
void crfree ( cr)
struct ucred * cr;
struct ucred * cr;
Parameter
Item | Description |
---|---|
cr | Pointer to the credentials structure that is to have a reference freed. |
Description
The crfree kernel service deallocates a reference to a credentials structure. The credentials structure is deallocated when no references remain.
Note: The cr parameter
must have been obtained by an earlier call to the crcopy kernel
service, crdup kernel service, crget kernel service,
or the crref kernel service.
Execution Environment
The crfree kernel service can be called from the process environment only.
Return Values
No value is returned by this kernel service.