crhold Kernel Service

Purpose

Increments the reference count for a credentials structure.

Syntax

 
#include <sys/cred.h>

 

void crhold ( cr)
struct ucred * cr;

Parameter

Item Description
cr Pointer to the credentials structure that will have its reference count incremented.

Description

The crhold kernel service increments the reference count of a credentials structure.

Note: Reference counts that are incremented with the crhold kernel service must be decremented with the crfree kernel service.

Execution Environment

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

Return Values

No value is returned by this kernel service.