From 14f78f32ff25306b4be482484b7c08a78b697f85 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Mon, 7 Dec 2009 00:24:21 -0200 Subject: [PATCH] The VFS layer, struct file_operations, struct file and struct inode. --- 02.vfs/02.vfs.xml | 39 +++++++++++++++++++++++++++++++++++++++ 02.vfs/Makefile | 13 +++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 02.vfs/02.vfs.xml create mode 100644 02.vfs/Makefile diff --git a/02.vfs/02.vfs.xml b/02.vfs/02.vfs.xml new file mode 100644 index 0000000..ed6f72c --- /dev/null +++ b/02.vfs/02.vfs.xml @@ -0,0 +1,39 @@ + + + + + + +Virtual File System +ThadeuCascardo + + + +Introduction + +The virtual file system is the hub for almost all operations in a Linux-based +system. It allows IPC with pipes, access to devices, including storage through +regular files and organization with directories. + + + + +Everything is a file + +In Unix, there's a say: "everything is a file, if it's not a file, it's a +process". Well, most things are really files, and that's why the VFS is at the +center of the system, including for device drivers. + + + + +Special files, procfs and others + +When handling with special files (character and block device nodes), procfs +files and others, we'll use some common structures. These include the +struct file\_operations, struct file +and struct inode. + + + + diff --git a/02.vfs/Makefile b/02.vfs/Makefile new file mode 100644 index 0000000..a7a7fc7 --- /dev/null +++ b/02.vfs/Makefile @@ -0,0 +1,13 @@ +NAME = 02.vfs + +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