This commit adds an interface to get the statistics (64-bits) from CAN interface. See more information from /usr/include/linux/if_link.h where defines the struct rtnl_link_stats64. Compare to the rtnl_link_stats, rtnl_link_stats64 was introduced since linux kernel 2.6. After that the rtnl_link_stats is synchronous with struct rtnl_link_stats64 by truncating each member from 64 bits to 32 bits. Actually, the struct rtnl_link_stats is kept for compatibility. Signed-off-by: Leo Ruan <tingquan.ruan@cn.bosch.com> Signed-off-by: Mark Jonas <mark.jonas@de.bosch.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> |
||
|---|---|---|
| Documentation | ||
| config | ||
| include | ||
| src | ||
| .gitignore | ||
| Doxyfile | ||
| GNUmakefile.am | ||
| INSTALL | ||
| LICENSE | ||
| README | ||
| autogen.sh | ||
| configure.ac | ||
README
libsocketcan ------------------------------------------------------------------------------- This library allows you to control some basic functions in SocketCAN from userspace. Dependencies: ------------------------------------------------------------------------------- A recent kernel with integrated SocketCAN (at least 2.6.30) Building: ------------------------------------------------------------------------------- Please refer to the INSTALL file Documentation: ------------------------------------------------------------------------------- Make sure you have Doxygen installed on your host. If yes simply run: make docs and look for the API doc in Documentation/html.