NAME¶
cxl_set_irqs_max - administratively restrict the maximum number of AFU
interrupts
SYNOPSIS¶
#include <libcxl.h>
int cxl_set_irqs_max(struct cxl_afu_h
*afu, long value);
DESCRIPTION¶
cxl_set_irqs_max() sets the maximum number of interrupts that can be
requested for afu, when calling cxl_afu_attach_full() or
cxl_afu_attach_work(). value must be greater or equal to the
value returned by cxl_get_irqs_min().
RETURN VALUE¶
On success, 0 is returned. On error, -1 is returned and errno is set
appropriately.
ERRORS¶
- EINVAL
- Invalid argument value.