[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, Volume 1

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

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

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.

Related Information

__pag_getid System Call, __pag_getname System Call, __pag_getvalue System Call, __pag_setname System Call, __pag_setvalue System Call, kcred_getpagid Kernel Service, and kcred_setpagname Kernel Service.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]