[Xenomai] [rtcan] Access to tx / rx / err counters

Julien Blanc julien.blanc at sprinte.eu
Tue Jul 3 11:28:41 CEST 2018


Le mardi 03 juillet 2018 à 09:40 +0200, Julien Blanc a écrit :
> 
> 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)

Attached is a patch that does exactly that (ie, adding the ioctls).
Based on xenomai 3.0.4, tested only with the flexcan driver (but should
work with any other).

Regards,

Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtcan_counters_ioctl.patch
Type: text/x-patch
Size: 1792 bytes
Desc: not available
URL: <http://xenomai.org/pipermail/xenomai/attachments/20180703/034e174c/attachment.bin>


More information about the Xenomai mailing list