NAME¶
cxl_work_set_amr - set the value of the authority mask register
SYNOPSIS¶
#include <libcxl.h>
int cxl_work_set_amr(struct cxl_ioctl_start_work
*work, __u64 amr);
DESCRIPTION¶
cxl_work_set_amr() sets the value of the authority mask register
amr into the struct work. A null value indicates that the
authority mask register should not be set by cxl_afu_attach_work().
RETURN VALUE¶
On success, 0 is returned. On error, -1 is returned and errno is set
appropriately.
ERRORS¶
- EINVAL
- Invalid argument value.