M1x22_error_code_get – Maxim Integrated 73M1822/73M1922 Control Module User Manual
Page 34
Advertising

73M1822/73M1922 Control Module User Guide
UG_1x22_053
34
Rev. 1.0
6.2.6 M1X22_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 M1X22_ERROR_CODE_GET _IOWR(0xA4,0xB2,unsigned int)
Prototype
int ioctl (
int dev_fd,
int M1X22_ERROR_CODE_GET,
unsigned long param );
Parameters
Data Type
Name
Description
int
dev_fd/chan_fd
Device or Channel descriptor.
int
M1X22_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