[FE training-materials-updates] Some details about the userspace API of misc devices
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Fri Sep 27 13:13:22 CEST 2013
Repository : git://git.free-electrons.com/training-materials.git
On branch : kernel-ng
Link : http://git.free-electrons.com/training-materials/commit/?id=9850bb451b8c2f7b2a1451c6d8e0bfdfd243bb2f
>---------------------------------------------------------------
commit 9850bb451b8c2f7b2a1451c6d8e0bfdfd243bb2f
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date: Fri Sep 27 13:12:57 2013 +0200
Some details about the userspace API of misc devices
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
>---------------------------------------------------------------
9850bb451b8c2f7b2a1451c6d8e0bfdfd243bb2f
.../kernel-misc-subsystem.tex | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/slides/kernel-misc-subsystem/kernel-misc-subsystem.tex b/slides/kernel-misc-subsystem/kernel-misc-subsystem.tex
index 7f84221..c2c05a3 100644
--- a/slides/kernel-misc-subsystem/kernel-misc-subsystem.tex
+++ b/slides/kernel-misc-subsystem/kernel-misc-subsystem.tex
@@ -75,6 +75,22 @@ struct miscdevice {
\end{itemize}
\end{frame}
+\begin{frame}{User-space API for misc devices}
+ \begin{itemize}
+ \item {\em misc devices} are regular character devices
+ \item The operations they support in user-space depends on the
+ operations the kernel driver implements:
+ \begin{itemize}
+ \item The \code{open()} and \code{close()} system calls to
+ open/close the device.
+ \item The \code{read()} and \code{write()} system calls to
+ read/write to/from the device.
+ \item The \code{ioctl()} system call to call some driver-specific
+ operations.
+ \end{itemize}
+ \end{itemize}
+\end{frame}
+
\setuplabframe
{Output-only serial port driver}
{
More information about the training-materials-updates
mailing list