/[gentoo]/xml/htdocs/doc/en/devfs-guide.xml
Gentoo

Diff of /xml/htdocs/doc/en/devfs-guide.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.10 Revision 1.11
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/devfs-guide.xml,v 1.10 2005/06/20 09:41:16 neysx Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/devfs-guide.xml,v 1.11 2005/07/18 10:03:44 fox2mike Exp $ -->
3 3
4<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 4<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
5 5
6<guide link="/doc/en/devfs-guide.xml"> 6<guide link="/doc/en/devfs-guide.xml">
7<title>Device File System Guide</title> 7<title>Device File System Guide</title>
19 19
20<!-- The content of this document is licensed under the CC-BY-SA license --> 20<!-- The content of this document is licensed under the CC-BY-SA license -->
21<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 21<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
22<license/> 22<license/>
23 23
24<version>0.4</version> 24<version>0.5</version>
25<date>2005-06-20</date> 25<date>2005-07-18</date>
26 26
27<chapter> 27<chapter>
28<title>What is devfs?</title> 28<title>What is devfs?</title>
29<section> 29<section>
30<title>The (good?) old days</title> 30<title>The (good?) old days</title>
67</pre> 67</pre>
68 68
69<p> 69<p>
70In the previous example we see that <path>/dev/hda</path> is a block 70In the previous example we see that <path>/dev/hda</path> is a block
71device. However, more importantly, it has two special numbers assigned 71device. However, more importantly, it has two special numbers assigned
72to it: <path>3, 0</path>. This pair is called the <e>major-minor</e> 72to it: <b>3, 0</b>. This pair is called the <e>major-minor</e>
73pair. It is used by the kernel to map a device file to a real device. 73pair. It is used by the kernel to map a device file to a real device.
74The major corresponds with a certain device, the minor with a subdevice. 74The major corresponds with a certain device, the minor with a subdevice.
75Seems confusing? It isn't. 75Seems confusing? It isn't.
76</p> 76</p>
77 77
78<p> 78<p>
79Two examples are <path>/dev/hda4</path> and <path>/dev/tty5</path>. The 79Two examples are <path>/dev/hda4</path> and <path>/dev/tty5</path>. The
80first device file corresponds with the fourth partition on the first IDE 80first device file corresponds with the fourth partition on the first IDE
81device. Its major-minor pair is <path>3, 4</path>. In other words, the 81device. Its major-minor pair is <b>3, 4</b>. In other words, the
82minor corresponds with the partition where the major corresponds with 82minor corresponds with the partition where the major corresponds with
83the device. The second example has <path>4, 5</path> as major-minor 83the device. The second example has <b>4, 5</b> as major-minor
84pair. In this case, the major corresponds with the terminal driver, 84pair. In this case, the major corresponds with the terminal driver,
85while the minor corresponds with the terminal number (in this case, the 85while the minor corresponds with the terminal number (in this case, the
86fifth terminal). 86fifth terminal).
87</p> 87</p>
88 88

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20