NAME¶
cxl_work_set_num_irqs - set the number of interrupts requested
SYNOPSIS¶
#include <libcxl.h>
int cxl_work_set_num_irqs(struct cxl_ioctl_start_work
*work, __s16 num_irqs);
DESCRIPTION¶
cxl_work_set_num_irqs() sets the number of interrupts requested
num_irqs into the struct work. If the value is negative, then
cxl_afu_attach_work(), will allocate the minimum number of interrupts
required by an AFU context, 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.