Gitweb: http://git.kernel.org/linus/69298698c2453c2f8cd1d7d2a4cae39eeec3b66e
Commit: 69298698c2453c2f8cd1d7d2a4cae39eeec3b66e
Parent: b62226826b4ea1926b644b5a337ffa6b637d4870
Author: Patrick Loschmidt <Patrick.Loschmidt@oeaw.ac.at>
AuthorDate: Wed Apr 7 21:52:07 2010 -0700
Committer: David S. Miller <davem@davemloft.net>
CommitDate: Wed Apr 7 21:52:07 2010 -0700
net: corrected documentation for hardware time stamping
The current documentation for hardware time stamping does not
correctly specify the available kernel functions since the
implementation was changed later on.
Signed-off-by: Patrick Loschmidt <Patrick.Loschmidt@oeaw.ac.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
---
Documentation/networking/timestamping.txt | 76 +++++++++++++++++-----------
1 files changed, 46 insertions(+), 30 deletions(-)
diff --git a/Documentation/networking/timestamping.txt b/Documentation/networking/timestamping.txt
index 0e58b45..e8c8f4f 100644
--- a/Documentation/networking/timestamping.txt
+++ b/Documentation/networking/timestamping.txt
@@ -41,11 +41,12 @@ SOF_TIMESTAMPING_SOFTWARE: return system time stamp generated in
SOF_TIMESTAMPING_TX/RX determine how time stamps are generated.
SOF_TIMESTAMPING_RAW/SYS determine how they are reported in the
following control message:
- struct scm_timestamping {
- struct timespec systime;
- struct timespec hwtimetrans;
- struct timespec hwtimeraw;
- };
+
+struct scm_timestamping {
+ struct timespec systime;
+ struct timespec hwtimetrans;
+ struct timespec hwtimeraw;
+};
recvmsg() can be used to get this control message for regular incoming
packets. For send time stamps the outgoing packet is looped back to
@@ -87,12 +88,13 @@ by the network device and will be empty without that support.
SIOCSHWTSTAMP:
Hardware time stamping must also be initialized for each device driver
-that is expected to do hardware time stamping. The ...