[FE training-materials-updates] "cleanup function" -> "exit function"

Michael Opdenacker michael.opdenacker at free-electrons.com
Thu Oct 4 17:16:38 CEST 2012


Repository : git://git.free-electrons.com/training-materials.git

On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=9e15be3fd5ce0ee52b7d6d18b0f1ed0f0040170a

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

commit 9e15be3fd5ce0ee52b7d6d18b0f1ed0f0040170a
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Thu Oct 4 16:00:42 2012 +0200

    "cleanup function" -> "exit function"
    
    Though "cleanup" may be more appropriate, "exit" is more
    in line with our slides and with today's kernel naming conventions.


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

9e15be3fd5ce0ee52b7d6d18b0f1ed0f0040170a
 labs/kernel-serial-driver/kernel-serial-driver.tex |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/labs/kernel-serial-driver/kernel-serial-driver.tex b/labs/kernel-serial-driver/kernel-serial-driver.tex
index 2576fc1..fc528b7 100644
--- a/labs/kernel-serial-driver/kernel-serial-driver.tex
+++ b/labs/kernel-serial-driver/kernel-serial-driver.tex
@@ -31,7 +31,7 @@ To do so:
 \begin{itemize}
 
 \item Create a basic module in \code{drivers/tty/serial/fedrv.c} with
-  just the init and cleanup functions ;
+  just the init and exit functions ;
 
 \item Add a new configuration option in
   \code{drivers/tty/serial/Kconfig}. Don't forget to select
@@ -68,7 +68,7 @@ Instantiate an \code{uart_driver} structure with the following values:
 \end{itemize}
 
 In the \code{init} function, register the UART driver with
-\code{uart_register_driver()} and in the cleanup function,
+\code{uart_register_driver()} and in the exit function,
 unregister it with \code{uart_unregister_driver()}.
 
 \section{Integration in the device model}
@@ -94,7 +94,7 @@ So that if the driver is statically compiled, the
 \code{fedrv_remove()} function is not compiled in and the
 \code{.remove} pointer is NULL.
 
-Then, in the init and cleanup functions of the module, register and
+Then, in the init and exit functions of the module, register and
 unregister the platform driver using
 \code{platform_driver_register()} and
 \code{platform_driver_unregister()}.



More information about the training-materials-updates mailing list