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.