How to get IOUserSerial RxError or interrputpacket in user space

Hello, I checked the relevant definitions in #include <sys/ttycom.h>, how can I get the RXError information of IOUserSerial in DriverKit.

How to get IOUserSerial RxError or interrputpacket in user space
 
 
Q