Retrieves the name of a PAG.
The kcred_getpagname kernel service retrieves the name of a PAG type given its integer value.
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. |
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.
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. |