CXL_GET_IRQS_MIN(3)

NAME
cxl_get_irqs_min - get the minimum number of AFU interrupts required for each context

SYNOPSIS
#include <libcxl.h>

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

DESCRIPTION
cxl_get_irqs_min() copies to the long integer pointed to by valp the minimum number of AFU interrupts required for each context of afu.

This is the minimum number that must be requested when calling cxl_afu_attach_full() or cxl_afu_attach_work() for afu. It is implicitly requested by cxl_afu_attach().

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_afu_attach(3), cxl_afu_attach_full(3), cxl_afu_attach_work(3), cxl_get_irqs_max(3), cxl_get_mode(3), cxl_get_modes_supported(3), cxl_get_prefault_mode(3), cxl_set_irqs_max(3), cxl_work_set_num_irqs(3)