diff options
| author | Holger Dengler <dengler@linutronix.de> | 2019-01-11 08:35:40 +0100 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2019-01-11 11:13:18 +0106 |
| commit | bf7bd4abcdd1e9ae1030c7a9dfae70c35791d771 (patch) | |
| tree | cde3083435586c781613658792ea775df75fb992 /linux-basics/api/frm_sysfs.tex | |
| parent | 68fc3833945d898db96c58b54c74351ea4ee830b (diff) | |
linux-basic: Add Userspace-to-Kernel API slides
Signed-off-by: Holger Dengler <dengler@linutronix.de>
Diffstat (limited to 'linux-basics/api/frm_sysfs.tex')
| -rw-r--r-- | linux-basics/api/frm_sysfs.tex | 41 |
1 files changed, 41 insertions, 0 deletions
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} |
