From: Thadeu Lima de Souza Cascardo Date: Sun, 6 Dec 2009 01:10:11 +0000 (-0200) Subject: Character devices. X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fkernel%2Fold_slides%2F.git;a=commitdiff_plain;h=5241cf55b69064ee2d6aae6e38827a1020fa47be Character devices. --- 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