NAME¶
cxl_get_cr_vendor - get the vendor ID out of an AFU configuration record
SYNOPSIS¶
#include <libcxl.h>
int cxl_get_cr_vendor(struct cxl_afu_h
*afu, long cr_num, long
*valp);
DESCRIPTION¶
cxl_get_cr_vendor() copies the vendor ID found in the afu
configuration record number cr_num, to the long integer pointed to by
valp.
RETURN VALUE¶
On success, 0 is returned. On error, -1 is returned and errno is set
appropriately.
ERRORS¶
- EINVAL
- Invalid argument value.
- ENODEV
- Configuration record does not exist.
- ENOMEM
- Insufficient memory.