Allocates and initializes the classes to keys translation table.
Workload Manager Library (libwlm.a)
#include <sys/wlm.h>
int wlm_initkey ( struct wlm_args *args, void **ctx)
The wlm_initkey subroutine allocates a block of memory, builds the keys <==> class names translation table and returns its address into the ctx argument.
If the wlm_initkey subroutine is successful, a value of 0 is returned. If the wlm_initkey subroutine is unsuccessful, an error code is returned.
If the wlm_initkey subroutine is unsuccessful, one of the
following error codes is returned:
WLM_BADVERS | Bad version number. |
WLM_NOT_INITED | Missing call to wlm_init. |
WLM_NOMEM | Not enough memory. |
WLM_NOCLASS | Specified configuration does not exist. |
WLM_EFAULT | Invalid ctx or args argument. |
The wlm_endkey subroutine.
The wlm_class2key subroutine.
The wlm_key2class subroutine.