Thread (10 messages) 10 messages, 2 authors, 2025-12-02
STALE215d

[PATCH iproute2-next v2 3/7] iplink_can: print_usage: describe the CAN bittiming units

From: Vincent Mailhol <mailhol@kernel.org>
Date: 2025-12-01 22:56:35
Also in: linux-can, lkml
Subsystem: the rest · Maintainer: Linus Torvalds

While the meaning of "bps" or "ns" may be relatively easy to understand,
some of the CAN specific units such as "mtq" (minimum time quanta) may be
harder to understand.

Add a new paragraph to the help menu which describes all the different
units used for the CAN bittiming parameters.

Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
---
Changelog

v1 -> v2:

  - "s/mili second/milisecond/g" and "s/nano second/nanosecond/g"
---
 ip/iplink_can.c | 7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/ip/iplink_can.c b/ip/iplink_can.c
index ee27659c..d5abc43a 100644
--- a/ip/iplink_can.c
+++ b/ip/iplink_can.c
@@ -60,6 +60,13 @@ static void print_usage(FILE *f)
 		"\t	TDCO		:= { NUMBER in mtq }\n"
 		"\t	TDCF		:= { NUMBER in mtq }\n"
 		"\t	RESTART-MS	:= { 0 | NUMBER in ms }\n"
+		"\n"
+		"\tUnits:\n"
+		"\t	bps	:= bit per second\n"
+		"\t	ms	:= millisecond\n"
+		"\t	mtq	:= minimum time quanta\n"
+		"\t	ns	:= nanosecond\n"
+		"\t	tq	:= time quanta\n"
 		);
 }
 
-- 
2.51.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help