IBM AIX Continuous Availability Features - IBM Redbooks
IBM AIX Continuous Availability Features - IBM Redbooks
IBM AIX Continuous Availability Features - IBM Redbooks
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
int pthread_attr_setukeyset_np (pthread_attr_t *attr, ukeyset_t *ukeyset)<br />
This sets a thread attributes object's user key set attribute.<br />
ukeyset_t ukeyset_activate (ukeyset_t set, int command)<br />
This activates a user keyset and returns the current user keyset. The<br />
value of “command” can be one of the following:<br />
UKA_REPLACE_KEYS: Replace keyset with the specified keyset.<br />
UKA_ADD_KEYS: Add the specified keyset to the current keyset.<br />
UKA_REMOVE_KEYS: Remove the specified keyset from the active<br />
keyset.<br />
UKA_GET_KEYS: Read the current key value without updating the<br />
current keyset. The input keyset is ignored.<br />
3.7.8 Kernel debugger commands<br />
The kernel debugger (KDB) has some new and changed commands to help you with storage<br />
protection keys. These commands are listed in Table 3-6.<br />
Table 3-6 New and changed kernel debugger commands<br />
Kernel debugger command Explanation<br />
kkeymap Displays the available hardware keys and the kernel keys that map to<br />
each.<br />
kkeymap Displays the mapping of the specified kernel key to a hardware key (-1<br />
indicates that the kernel key is not mapped).<br />
hkeymap Displays all the kernel keys that map to the specified hardware key.<br />
kkeyset Displays the kernel key access rights represented by a kernel keyset.<br />
The operand of this command is the address of the pointer to the<br />
opaque kernel keyset, not the kernel keyset structure itself.<br />
hkeyset Displays the hardware key accesses represented by this value if used<br />
in the AMR, and a sampling of the kernel keys involved.<br />
dr amr Displays the current AMR and the access rights it represents.<br />
dr sp Includes the AMR value.<br />
mr amr Allows modification of the AMR.<br />
dk 1 Displays the hardware key of the resident virtual page containing<br />
eaddr.<br />
mst Displays the AMR and context stack values. A storage key protection<br />
exception is indicated in excp_type as DSISR_SKEY.<br />
iplcb Displays the <strong>IBM</strong> processor-storage-keys property of a CPU, which<br />
indicates the number of hardware keys supported. This is in section<br />
/cpus/PowerPC of the device tree.<br />
vmlog Shows an exception value of EXCEPT_SKEY for a storage key<br />
violation.<br />
pft Displays the hardware key (labeled hkey) value for the page.<br />
pte Displays the hardware key (labeled sk) value for the page.<br />
scb Displays the hardware key default set for the segment.<br />
108 <strong>IBM</strong> <strong>AIX</strong> <strong>Continuous</strong> <strong>Availability</strong> <strong>Features</strong>