[bootlin/training-materials updates] master: Kernel labs: use get_seconds() instead of do_getttimeofday() (8bae2a86)

Michael Opdenacker michael.opdenacker at bootlin.com
Tue Sep 3 09:54:13 CEST 2019


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/8bae2a86e45b853078c6c4175dabe4a4cfc853ab

>---------------------------------------------------------------

commit 8bae2a86e45b853078c6c4175dabe4a4cfc853ab
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Tue Sep 3 09:54:13 2019 +0200

    Kernel labs: use get_seconds() instead of do_getttimeofday()
    
    - The latter no longer exists in the latest kernel
      Not an issue in our labs (using 4.19), but this is more
      future proof
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

8bae2a86e45b853078c6c4175dabe4a4cfc853ab
 labs/kernel-module-simple/kernel-module-simple.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/labs/kernel-module-simple/kernel-module-simple.tex b/labs/kernel-module-simple/kernel-module-simple.tex
index 3ae920a2..7c8f2a64 100644
--- a/labs/kernel-module-simple/kernel-module-simple.tex
+++ b/labs/kernel-module-simple/kernel-module-simple.tex
@@ -68,10 +68,10 @@ parameter into account when you load it.
 
 Improve your module, so that when you unload it, it tells you how many
 seconds elapsed since you loaded it.  You can use the
-\kfunc{do_gettimeofday} function to achieve this.
+\kfunc{get_seconds} function to achieve this.
 
 You may search for other drivers in the kernel sources using the
-\kfunc{do_gettimeofday} function. Looking for other examples always helps!
+\kfunc{get_seconds} function. Looking for other examples always helps!
 
 \section{Following Linux coding standards}
 




More information about the training-materials-updates mailing list