vm_setseg_kkey Kernel Service

Purpose

Sets the default kernel-key for a segment.

Syntax

#include <sys/types.h>
#include <sys/kerrno.h>
#include <sys/vmuser.h>

kerrno_t vm_setseg_kkey (vmid, kkey)
vmid_t vmid;
kkey_t kkey;

Parameters

Item Description
vmid Virtual memory object to act on.
kkey New kernel key for the virtual memory object.

Description

The vm_setseg_kkey kernel service alters the default kernel-key for newly allocated pages in a segment. The kernel-key values for any existing pages in the segment are left unchanged.

Execution Environment

The vm_setseg_kkey kernel service can be called from the process environment only.

Return Values

Item Description
0 Successful.
EINVAL_VM_SETSEG_KKEY Invalid parameter or execution environment.