From 5241cf55b69064ee2d6aae6e38827a1020fa47be Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Sat, 5 Dec 2009 23:10:11 -0200 Subject: [PATCH] Character devices. --- 03.char/03.char.xml | 41 +++++++++++++++++++++++++++++++++++++++++ 03.char/Makefile | 13 +++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 03.char/03.char.xml create mode 100644 03.char/Makefile diff --git a/03.char/03.char.xml b/03.char/03.char.xml new file mode 100644 index 0000000..3c9f8cd --- /dev/null +++ b/03.char/03.char.xml @@ -0,0 +1,41 @@ + + + + + + +Character Devices +ThadeuCascardo + + + +Introduction + + + +Device Number Macros + +Nowadays, major number is 12 bits and minor number is 20 bits. This may change +in the future, so macros should be used. + + + +MAJOR + + +MINOR + + +MKDEV + + + + + +Inode structure + +Use imajor and iminor to get the major and minor number from an inode structure. + + + + diff --git a/03.char/Makefile b/03.char/Makefile new file mode 100644 index 0000000..f5972c1 --- /dev/null +++ b/03.char/Makefile @@ -0,0 +1,13 @@ +NAME = 03.char + +all: $(NAME).pdf + +%.pdf: %.tex + TEXINPUTS=.:..: pdflatex $< + +%.tex: %.xml ../beamer.xsl + xsltproc ../beamer.xsl $< > $@ + +clean: + rm -f $(NAME).pdf $(NAME).tex $(NAME).aux $(NAME).log $(NAME).nav \ + $(NAME).out $(NAME).snm $(NAME).toc $(NAME).vrb -- 2.20.1