[bootlin/training-materials updates] master: kernel: move sysfs slide at the beginning (b43dabbe)
Clément Léger
clement.leger at bootlin.com
Tue Jan 25 12:09:06 CET 2022
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/b43dabbeda054cbb0711ac5ab3a8bfc5e9a3e709
>---------------------------------------------------------------
commit b43dabbeda054cbb0711ac5ab3a8bfc5e9a3e709
Author: Clément Léger <clement.leger at bootlin.com>
Date: Tue Jan 25 12:05:41 2022 +0100
kernel: move sysfs slide at the beginning
Since the first 3 slides introduce drivers, device and bus, the sysfs
view of the device model makes sense to be explained here.
Signed-off-by: Clément Léger <clement.leger at bootlin.com>
>---------------------------------------------------------------
b43dabbeda054cbb0711ac5ab3a8bfc5e9a3e709
slides/kernel-device-model/kernel-device-model.tex | 42 +++++++++++-----------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/slides/kernel-device-model/kernel-device-model.tex b/slides/kernel-device-model/kernel-device-model.tex
index 3e0a2868..54c7c8fc 100644
--- a/slides/kernel-device-model/kernel-device-model.tex
+++ b/slides/kernel-device-model/kernel-device-model.tex
@@ -88,6 +88,27 @@
\end{itemize}
\end{frame}
+
+\begin{frame}
+ \frametitle{sysfs}
+ \begin{itemize}
+ \item The bus, device, drivers, etc. structures are internal to the
+ kernel
+ \item The \code{sysfs} virtual filesystem offers a mechanism to
+ export such information to user space
+ \item Used for example by \code{udev} to provide automatic module loading,
+ firmware loading, mounting of external media, etc.
+ \item \code{sysfs} is usually mounted in \code{/sys}
+ \begin{itemize}
+ \item \code{/sys/bus/} contains the list of buses
+ \item \code{/sys/devices/} contains the list of devices
+ \item \code{/sys/class} enumerates devices by the framework they are
+ registered to (\code{net}, \code{input}, \code{block}...),
+ whatever bus they are connected to. Very useful!
+ \end{itemize}
+ \end{itemize}
+\end{frame}
+
\subsection{Example of the USB bus}
\begin{frame}
@@ -963,27 +984,6 @@ examples:
\end{itemize}
\end{frame}
-\begin{frame}
- \frametitle{sysfs}
- \begin{itemize}
- \item The bus, device, drivers, etc. structures are internal to the
- kernel
- \item The \code{sysfs} virtual filesystem offers a mechanism to
- export such information to user space
- \item Used for example by \code{udev} to provide automatic module loading,
- firmware loading, mounting of external media, etc.
- \item \code{sysfs} is usually mounted in \code{/sys}
- \begin{itemize}
- \item \code{/sys/bus/} contains the list of buses
- \item \code{/sys/devices/} contains the list of devices
- \item \code{/sys/class} enumerates devices by the framework they are
- registered to (\code{net}, \code{input}, \code{block}...),
- whatever bus they are connected to. Very useful!
- \end{itemize}
- \item Take your time to explore \code{/sys} on your workstation.
- \end{itemize}
-\end{frame}
-
\begin{frame}
\frametitle{References}
\begin{columns}
More information about the training-materials-updates
mailing list