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

Technical Reference: Kernel and Subsystems, Volume 1

kcred_getpagid Kernel Service

Purpose

Returns the PAG identifier for a PAG name.

Syntax

int kcred_getpagid (name)
char *name;

Description

Given a PAG type name, the kcred_getpagid subroutine returns the PAG identifier for that PAG name.

Parameters

name A pointer to the name of the PAG type whose integer PAG identifer is to be returned.

Return Values

A return value greater than or equal to 0 is the PAG identifier. A value less than 0 indicates an error.

Error Codes

ENOENT The name parameter doesn't refer to an existing PAG entry.

Related Information

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

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