wlm_endkey Subroutine

Purpose

Frees the classes to keys translation table.

Library

Workload Manager Library (libwlm.a)

Syntax

#include sys/wlm.h

int wlm_endkey(struct wlm_args *args, void *ctx)

Description

The wlm_endkey subroutine frees the classes to the keys translation table. The memory area pointed to by ctx is freed.

Parameters

Item Description
- ctx Points to the memory area to be freed.
wlm_args A pointer to a wlm_args structure:

versflag field is the only field in the structure that needs to be initialized with WLM_VERSION and optionally WLM_MUTE.

Return Values

When the wlm_endkey operation is successful, it returns a value of 0, and if it is unsuccessful, it returns an error code.

Error Codes

If the wlm_endkey subroutine is unsuccessful, one of the following error codes is returned:

Item Description
WLM_BADVERS Bad version number.
WLM_NOT_INITED Missing call to wlm_init.
WLM_EFAULT Invalid ctx or args argument.