CXL_GET_MODES_SUPPORTED(3)

NAME
cxl_get_modes_supported - get the programming modes supported by an AFU

SYNOPSIS
#include <libcxl.h>

int cxl_get_mode_supported(struct cxl_afu_h *afu, long *valp);

DESCRIPTION
cxl_get_mode_supported() copies the mask of the modes supported by afu to the long integer pointed to by valp. The following bits may be set in the mode mask: CXL_MODE_DEDICATED and CXL_MODE_DIRECTED.

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_afu_next(3), cxl_afu_fd_to_h(3), cxl_afu_next(3), cxl_afu_open_dev(3), cxl_afu_open_h(3), cxl_get_api_version(3), cxl_get_api_version_compatible(3), cxl_get_irqs_max(3), cxl_get_irqs_min(3), cxl_get_mode(3), cxl_get_prefault_mode(3), cxl_set_mode(3)