1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE slides SYSTEM "/usr/share/xml/docbook/custom/slides/3.3.1/schema/dtd/slides-full.dtd">
7 <title>Virtual File System</title>
8 <author><firstname>Thadeu</firstname><surname>Cascardo</surname></author>
12 <title>Introduction</title>
14 The virtual file system is the hub for almost all operations in a Linux-based
15 system. It allows IPC with pipes, access to devices, including storage through
16 regular files and organization with directories.
21 <title>Everything is a file</title>
23 In Unix, there's a say: "everything is a file, if it's not a file, it's a
24 process". Well, most things are really files, and that's why the VFS is at the
25 center of the system, including for device drivers.
30 <title>Special files, procfs and others</title>
32 When handling with special files (character and block device nodes), procfs
33 files and others, we'll use some common structures. These include the
34 <emphasis>struct file\_operations</emphasis>, <emphasis>struct file</emphasis>
35 and <emphasis>struct inode</emphasis>.
40 <title>File Operations</title>
73 <title>Opened File</title>
94 <title>Filesystem File: inode</title>
96 The inode is a representation of the file as in its filesystem, including its
97 major/minor numbers and pointers to the corresponding device representation.