M1966_error_code_get – Maxim Integrated 73M1866B/73M1966B Reference Driver User Manual
Page 44
Advertising

73M1866B/73M1966B Reference Driver User Guide
UG_1x66B_015
44
Rev. 2.7
6.2.6 M1966_ERROR_CODE_GET
Description
This IOCTL returns the error code of the last IOCTL command. The driver records only the last error
code and applicable to device and channel descriptor.
#define M1966_ERROR_CODE_GET _IOWR(0xA4,0xB2,unsigned int)
Prototype
int ioctl (
int dev_fd,
int M1966_ERROR_CODE_GET,
unsigned long param );
Parameters
Data Type
Name
Description
int
dev_fd/chan_fd
Device or Channel descriptor.
int
M1966_ERROR_CODE_GET I/O control identifier for this operation.
unsigned long
param
Pointer to the error code of type unsigned int.
Return Values
Data Type
Description
int
0 – Successful.
-EFAULT – Failed to retrieve the error code.
Advertising