Sets the default kernel-key for a segment.
| Item | Description | 
|---|---|
| vmid | Virtual memory object to act on. | 
| kkey | New kernel key for the virtual memory object. | 
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.
The vm_setseg_kkey kernel service can be called from the process environment only.
| Item | Description | 
|---|---|
| 0 | Successful. | 
| EINVAL_VM_SETSEG_KKEY | Invalid parameter or execution environment. |