.\" Copyright 2015-2017 IBM Corp. .\" .TH CXL_SET_IRQS_MAX 3 2017-05-24 "LIBCXL 1.5" "CXL Programmer's Manual" .SH NAME cxl_set_irqs_max \- administratively restrict the maximum number of AFU interrupts .SH SYNOPSIS .B #include .PP .B "int cxl_set_irqs_max(struct cxl_afu_h" .BI * afu ", long " value ); .SH DESCRIPTION .BR cxl_set_irqs_max () sets the maximum number of interrupts that can be requested for .IR afu , when calling .BR cxl_afu_attach_full () or .BR cxl_afu_attach_work (). .I value must be greater or equal to the value returned by .BR cxl_get_irqs_min (). .SH RETURN VALUE On success, 0 is returned. On error, \-1 is returned and .I errno is set appropriately. .SH ERRORS .TP .B EINVAL Invalid argument value. .SH SEE ALSO .BR cxl (3), .BR cxl_afu_attach_full (3), .BR cxl_afu_attach_work (3), .BR cxl_get_irqs_max (3), .BR cxl_get_irqs_min (3)