<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ubuntu,debian,redhat -linuxany.com &#187; block</title>
	<atom:link href="http://www.linuxany.com/archives/tag/block/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxany.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Jan 2012 08:59:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>mknod详解</title>
		<link>http://www.linuxany.com/archives/1213.html</link>
		<comments>http://www.linuxany.com/archives/1213.html#comments</comments>
		<pubDate>Sat, 20 Feb 2010 04:38:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RedHat]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[mknod]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1213</guid>
		<description><![CDATA[mknod &#8211; make block or character special files mknod [OPTION]... NAME TYPE [MAJOR MINOR]option 有用的就是 -m 了name&#160; &#160;自定义type&#160; &#160;有 b(块文件) 和 c(字符文件) 还有 p(FIFO型)MAJOR&#160; 主设备号MINOR&#160; 次设备号 主设备号是由/usr/src/linux/include/linux/major.h定义的，如下定义了一个DOC设备： #define IGEL_FLASH_MAJOR 62 假如有一个命令 mknod doc b 62 0 其中的doc为定义的名字，b指块设备，0指的是整个DOC。如果把0换为1,则1指的是DOC的第一个分区。2是第2个，依次类推。 mknod console c 5 1 console为设备文件名，自己随便取 c是指字符型设备 (可选b，块设备) 5是主设备号 /dev/devices里面记录现有的设备 找个没有用的就可以了 1是次设备号，当你要给两个同样的设备上一个驱动的时候就要分了，从0开始，1就是第二个了 设备文件 对于每种硬件设备，系统内核有相应的设备驱动程序负责对它的处理。而在Unix中，使用设备文件的方式来表示硬件设备，每种设备驱动程序都被抽象为设备文件的形式，这样就给应用程序一个一致的文件界面，方便应用程序和操作系统之间的通信。 习惯上，所有的设备文件都放置在/dev目录下。 $ ls -l [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1213.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

