NAME¶
cxl_get_base_image - get the revision level of the initial PSL image loaded on
the CXL device
SYNOPSIS¶
#include <libcxl.h>
int cxl_get_base_image(struct cxl_adapter_h
*adapter, long *valp);
DESCRIPTION¶
For CXL devices that support loadable PSLs, cxl_get_base_image()
identifies the revision level of the base image. For FPGAs, this attribute
identifies the image contained in the on-card flash which is loaded during the
initial program load. The adapter base image revision level is copied
to the long integer pointed to by valp.
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.