[Xenomai] [rtcan] Access to tx / rx / err counters
julien.blanc at sprinte.eu
Tue Jul 3 09:40:25 CEST 2018
/proc/rtcan/devices , as well as the respective
/proc/rtcan/<device>/info both gives access to the TX-Counter, RX-
Counter and Errors counter of the device.
I'd like to access these counters from an application, but cannot find
the appropriate ioctls to do this. Adding them is not an issue, but i
would like to avoid duplicating any existing feature, or to read the
/proc filesystem whose format is not really guaranted.
Is there a way to access these counters ? And if not, what would be the
ioctl to add ? For example :
#define RTCAN_RTIOC_GET_RXCOUNTER _IOR(RTIOC_TYPE_CAN, 0xC, int)
#define RTCAN_RTIOC_GET_TXCOUNTER _IOR(RTIOC_TYPE_CAN, 0xD, int)
#define RTCAN_RTIOC_GET_ERRCOUNTER _IOR(RTIOC_TYPE_CAN, 0xE, int)
More information about the Xenomai