]> bbs.cooldavid.org Git - net-next-2.6.git/commit
can/netlink: add CAN_CTRLMODE_ONE_SHOT
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 23 Dec 2009 01:27:48 +0000 (01:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jan 2010 05:31:03 +0000 (21:31 -0800)
commitc1c5523dd1517250cac8b15a4acbc237c24a67d4
treece2e7962c10df3b2a8bda93db3393d898b47c98c
parent20dd3850bcf860561496827b711fa10fecf6e787
can/netlink: add CAN_CTRLMODE_ONE_SHOT

This patch adds the flag CAN_CTRLMODE_ONE_SHOT. It is used as mask
or flag in the "struct can_ctrlmode".

It allows userspace via netlink to set a CAN controller into the special
"one-shot" mode. In this mode, if supported by the CAN controller, it
tries only once to deliver a CAN frame and aborts it if an error
(e.g.: arbitration lost) happens.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/can/netlink.h