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

Technical Reference: Kernel and Subsystems, Volume 1

__pag_getvalue System Call

Purpose

Invokes the kcred_getpag kernel service and returns the PAG value.

Syntax

int __pag_getvalue (type)
int type;

Description

Given a PAG type, the __pag_getvalue system call invokes the kcred_getpag kernel service and returns the PAG value for the value of the type parameter.

Parameters

type An int value indicating the desired PAG.

Return Values

If successful, the value of the PAG (or 0 when there is no value for that PAG type) is returned. If unsuccessful, -1 is returned and the errno global variable is set to a value reflecting the cause of the error.

Error Codes

EINVAL The type parameter is less than 0 or greater than the maximum PAG type value.
ENOENT The type parameter doesn't reference and existing PAG type.
Note
It is not an error for a defined PAG to not have a value in the current process' credentials.

Related Information

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

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