[bootlin/training-materials updates] master: Kernel slides: minor improvements (25808523)

Michael Opdenacker michael.opdenacker at bootlin.com
Wed Feb 10 09:02:20 CET 2021

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


commit 2580852335cbce13fe71a841fc06000203fa337e
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Wed Feb 10 09:02:20 2021 +0100

    Kernel slides: minor improvements
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


 .../kernel-driver-development-concurrency.tex                      | 2 +-
 .../kernel-driver-development-debugging.tex                        | 2 ++
 .../kernel-driver-development-interrupts.tex                       | 4 ++--
 .../kernel-driver-development-memory.tex                           | 7 ++++---
 4 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/slides/kernel-driver-development-concurrency/kernel-driver-development-concurrency.tex b/slides/kernel-driver-development-concurrency/kernel-driver-development-concurrency.tex
index 88b173ec..8c4fee4c 100644
--- a/slides/kernel-driver-development-concurrency/kernel-driver-development-concurrency.tex
+++ b/slides/kernel-driver-development-concurrency/kernel-driver-development-concurrency.tex
@@ -208,7 +208,7 @@ static unsigned int ulite_tx_empty
-  \frametitle{More deadlock Situations} They can lock up your system. Make sure they never happen!
+  \frametitle{More deadlock situations} They can lock up your system. Make sure they never happen!
diff --git a/slides/kernel-driver-development-debugging/kernel-driver-development-debugging.tex b/slides/kernel-driver-development-debugging/kernel-driver-development-debugging.tex
index de869538..5d09bf4e 100644
--- a/slides/kernel-driver-development-debugging/kernel-driver-development-debugging.tex
+++ b/slides/kernel-driver-development-debugging/kernel-driver-development-debugging.tex
@@ -18,6 +18,7 @@
 pr_info("Booting CPU %d\n", cpu);
+    \item Here's what you get in the kernel log:
 [  202.350064] Booting CPU 1
@@ -43,6 +44,7 @@ pr_info("Booting CPU %d\n", cpu);
 dev_info(&pdev->dev, "in probe\n");
+    \item Here's what you get in the kernel log:
 [   25.878382] serial 48024000.serial: in probe
 [   25.884873] serial 481a8000.serial: in probe
diff --git a/slides/kernel-driver-development-interrupts/kernel-driver-development-interrupts.tex b/slides/kernel-driver-development-interrupts/kernel-driver-development-interrupts.tex
index 1f70821d..c7bcdcc7 100644
--- a/slides/kernel-driver-development-interrupts/kernel-driver-development-interrupts.tex
+++ b/slides/kernel-driver-development-interrupts/kernel-driver-development-interrupts.tex
@@ -17,7 +17,7 @@ int devm_request_irq(struct device *dev,
   \item \code{irq} is the requested IRQ channel. For platform
         devices, use \kfunc{platform_get_irq} to retrieve the
         interrupt number.
-  \item \code{handler} is a pointer to the IRQ handler
+  \item \code{handler} is a pointer to the IRQ handler function
   \item \code{irq_flags} are option masks (see next slide)
   \item \code{devname} is the registered name (for
@@ -221,7 +221,7 @@ int devm_request_threaded_irq(
   \item Interface in the Linux kernel used for interrupt mitigation in
         network drivers
-  \item Principe: when the network traffic exceeds a given threshhold
+  \item Principle: when the network traffic exceeds a given threshhold
         ("budget"), disable network interrupts and consume incoming packets
         through a polling function, instead of processing each new
         packet with an interrupt.
diff --git a/slides/kernel-driver-development-memory/kernel-driver-development-memory.tex b/slides/kernel-driver-development-memory/kernel-driver-development-memory.tex
index 140128a4..3310cd2d 100644
--- a/slides/kernel-driver-development-memory/kernel-driver-development-memory.tex
+++ b/slides/kernel-driver-development-memory/kernel-driver-development-memory.tex
@@ -300,7 +300,7 @@ kfree(work);
     \item Allocates memory for an array of \code{n} elements of
       \code{size} size, and zeroes its contents.
-  \item {\footnotesize \mint{c}+void *krealloc(const void *p, size_t new_size, gfp_t flags);+}
+  \item \mint{c}+void *krealloc(const void *p, size_t new_size, gfp_t flags);+
     \item Changes the size of the buffer pointed by \code{p} to
       \code{new_size}, by reallocating a new buffer and copying the
@@ -314,7 +314,7 @@ kfree(work);
   \frametitle{devm\_ kmalloc functions}
   Allocations with automatic freeing when the corresponding device or module is unprobed.
-  \scriptsize
+  \small
   \item \mint{c}+void *devm_kmalloc(struct device *dev, size_t size, int flags);+
   \item \mint{c}+void *devm_kzalloc(struct device *dev, size_t size, int flags);+
   \item \mint{c}+void *devm_kcalloc(struct device *dev, size_t n, size_t size, gfp_t flags);+
@@ -322,7 +322,8 @@ kfree(work);
         Useful to immediately free an allocated buffer
-  For use in \code{probe()} functions.
+  For use in \code{probe()} functions, in which you have access to a
+  \kstruct{device} structure.

More information about the training-materials-updates mailing list