[PATCH] can: Add a helper function to get CAN bus state

Benedikt Spranger b.spranger at linutronix.de
Fri Jan 25 10:50:31 EST 2013


For an application sending CAN frames the CAN bus state is crucial to know.
The CAN bus changes from "error active" (CAN frames can be send) to
"error passive" (CAN frames can *not* be send, but received) upon error count.
Add a helper function to get the CAN bus state.

Benedikt Spranger (1):
  can: add helper function to get CAN bus state

 include/netlink/route/link/can.h |    1 +
 lib/route/link/can.c             |   19 +++++++++++++++++++
 2 files changed, 20 insertions(+)

-- 
1.7.10.4




More information about the libnl mailing list