kcred_getpagname Kernel Service

Purpose

Retrieves the name of a PAG.

Syntax

int kcred_getpagname (type, buf, size)
int type;
char *buf;
int size;

Description

The kcred_getpagname kernel service retrieves the name of a PAG type given its integer value.

Parameters

Item Description
type The integer valued identifier representing the PAG type.
buf A char * to where the PAG name is copied.
size An int that specifies the size of buf in bytes. The size of the buffer must be PAG_NAME_LENGTH_MAX+1.

Return Values

If successful, a 0 is returned. If unsuccessful, an error code value less than 0 is returned. The PAG name associated with type is copied into the caller-supplied buffer buf.

Error Codes

Item Description
EINVAL The value of id is less than 0 or greater than the maximum PAG identifier.
ENOENT There is no PAG associated with id.
ENOSPC The size parameter is insufficient to hold the PAG name.