Scroll to navigation

CXL_GET_IRQS_MAX(3) CXL Programmer's Manual CXL_GET_IRQS_MAX(3)

NAME

cxl_get_irqs_max - get the maximum number of AFU interrupts available to a context, if it was the only context running

SYNOPSIS

#include <libcxl.h>

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

DESCRIPTION

cxl_get_irqs_max() copies to the long integer pointed to by valp the maximum number of AFU interrupts available to a context of afu, if it was the only context running.

This is the maximum number of interrupts that may be requested when calling cxl_afu_attach_full() or cxl_afu_attach_work() for afu. The default on probe is the maximum that hardware can support. It can be administratively restricted with cxl_set_irqs_max().

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_min(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)
2016-05-25 LIBCXL 1.4