From bf7bd4abcdd1e9ae1030c7a9dfae70c35791d771 Mon Sep 17 00:00:00 2001
From: Holger Dengler <dengler@linutronix.de>
Date: Fri, 11 Jan 2019 08:35:40 +0100
Subject: linux-basic: Add Userspace-to-Kernel API slides

Signed-off-by: Holger Dengler <dengler@linutronix.de>
---
 linux-basics/api/frm_sysfs.tex | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 linux-basics/api/frm_sysfs.tex

(limited to 'linux-basics/api/frm_sysfs.tex')

diff --git a/linux-basics/api/frm_sysfs.tex b/linux-basics/api/frm_sysfs.tex
new file mode 100644
index 0000000..c3aefb7
--- /dev/null
+++ b/linux-basics/api/frm_sysfs.tex
@@ -0,0 +1,41 @@
+\subsubsection{Pseudofs sysfs}
+% ----------------------------
+\begin{frame}
+\frametitle{Basics}
+\begin{itemize}
+\item externalize kernel objects
+\item mount-point: /sys
+\item early mount required
+\item Kernel devices
+ \begin{itemize}
+ \item /sys/devices: all devices
+ \item /sys/block: only block devices
+ \item /sys/bus: devices, sorted by bus
+ \item /sys/class: devices, sorted by class
+ \end{itemize}
+\item Kernel modules
+ \begin{itemize}
+ \item /sys/module: all modules
+ \item module parameters
+ \item module properties
+ \end{itemize}
+\item Tooling support:
+ \begin{itemize}
+ \item bus tools: lspci, lsusb, etc
+ \item others: lsuio
+ \end{itemize}
+\end{itemize}
+\end{frame}
+% The pseudo filesystem sys provices access to all kernel objects like
+% devices, drivers and modules. The subdirectories sorts a subset of kernel
+% objects accoding to different criteria, like bus, class, and so on.
+
+% ----------------------------
+\subsubsection*{}
+\begin{frame}
+\frametitle{Resources}
+\begin{itemize}
+\item \href{https://www.kernel.org/doc/Documentation/filesystems/sysfs.txt}{Kernel: Documentation/filesystems/sysfs.txt}
+\item \href{http://man7.org/linux/man-pages/man5/sysfs.5.html}{man 5 sysfs}
+\end{itemize}
+\end{frame}
-- 
cgit v1.2.3

