Class name to key translation.
Workload Manager Library (libwlm.a)
int wlm_class2key ( struct wlm_args *args, wlm_key_t *key)
The wlm_class2key subroutine generates a 64-bit numeric key from a WLM class name. The wlm_class2key subroutine is provided for applications gathering high volumes of per-class usage statistics or accounting data and allows those applications to save storage space by compressing the class name (up to 34 characters long) into a 64-bit integer. The wlm_key2class subroutine can then get the key-to-class name conversion for data reporting purposes
|wlm_args||Only 2 fields need to be initialized in the wlm_args structure
pointed to by args:
If the wlm_class2key subroutine is successful, a value of 0 is returned. If the wlm_class2key subroutine is unsuccessful, an error code is returned.
If the wlm_class2key subroutine is unsuccessful, one of the
following error codes is returned:
|WLM_NOT_INITED||Missing call to wlm_init.|
|WLM_EFAULT||Invalid key or args pointer.|
|WLM_BADCNAME||The class name contains invalid characters.|
The wlm_endkey subroutine.
The wlm_initkey subroutine.
The wlm_key2class subroutine.