CXL_GET_IMAGE_LOADED(3)

NAME
cxl_get_image_loaded - returns which of the user and factory PSL images is currently loaded on the CXL device

SYNOPSIS
#include <libcxl.h>

int cxl_get_image_loaded(struct cxl_adapter_h *adapter, enum cxl_image *valp);

DESCRIPTION
cxl_get_image_loaded() copies which of the user and factory PSL images is current ly loaded on the CXL device adapter to the long integer pointed to by valp. The enum cxl_image value will be CXL_IMAGE_FACTORY or CXL_IMAGE_USER.

RETURN VALUE
On success, 0 is returned. On error, -1 is returned and errno is set appropriately.

ERRORS

EINVAL
    Invalid argument value.

ENOMEM
    Insufficient memory.

SEE ALSO
cxl(3), cxl_adapter_next(3), cxl_get_base_image(3), cxl_get_caia_version(3), cxl_get_psl_revision(3), cxl_get_psl_timebase_synced(3)