Date: Sat, 16 Feb 2013 17:47:01 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r40988 - in head/en_US.ISO8859-1/books/arch-handbook: driverbasics mac Message-ID: <201302161747.r1GHl1qk076679@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Sat Feb 16 17:47:00 2013 New Revision: 40988 URL: http://svnweb.freebsd.org/changeset/doc/40988 Log: All the bits about MAKEDEV and mknod should be removed. They haven't been necessary since 4.x. Noted by: jhb Approved by: bcr (mentor) Modified: head/en_US.ISO8859-1/books/arch-handbook/driverbasics/chapter.xml head/en_US.ISO8859-1/books/arch-handbook/mac/chapter.xml Modified: head/en_US.ISO8859-1/books/arch-handbook/driverbasics/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/arch-handbook/driverbasics/chapter.xml Sat Feb 16 16:51:37 2013 (r40987) +++ head/en_US.ISO8859-1/books/arch-handbook/driverbasics/chapter.xml Sat Feb 16 17:47:00 2013 (r40988) @@ -43,7 +43,6 @@ linker facility `kld'.</para> <indexterm><primary>device nodes</primary></indexterm> - <indexterm><primary>MAKEDEV</primary></indexterm> <para>Most devices in a &unix;-like operating system are accessed through device-nodes, sometimes also called special files. @@ -155,46 +154,6 @@ KMOD=skeleton </sect2> </sect1> - <sect1 id="driverbasics-access"> - <title>Accessing a Device Driver</title> - - <para>&unix; provides a common set of system calls for user - applications to use. The upper layers of the kernel dispatch - these calls to the corresponding device driver when a user - accesses a device node. The <command>/dev/MAKEDEV</command> - script makes most of the device nodes for your system but if you - are doing your own driver development it may be necessary to - create your own device nodes with - <command>mknod</command>.</para> - - <sect2> - <title>Creating Static Device Nodes</title> - - <indexterm><primary>device nodes</primary><secondary>static</secondary></indexterm> - <indexterm><primary>mknod</primary></indexterm> - - <para>The <command>mknod</command> command requires four - arguments to create a device node. You must specify the name - of the device node, the type of device, the major number of - the device, and the minor number of the device.</para> - </sect2> - - <sect2> - <title>Dynamic Device Nodes</title> - - <indexterm><primary>device nodes</primary><secondary>dynamic</secondary></indexterm> - <indexterm><primary>devfs</primary></indexterm> - - <para>The device filesystem, or devfs, provides access to the - kernel's device namespace in the global filesystem namespace. - This eliminates the problems of potentially having a device - driver without a static device node, or a device node without - an installed device driver. Devfs is still a work in - progress, but it is already working quite nicely.</para> - </sect2> - - </sect1> - <sect1 id="driverbasics-char"> <title>Character Devices</title> Modified: head/en_US.ISO8859-1/books/arch-handbook/mac/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/arch-handbook/mac/chapter.xml Sat Feb 16 16:51:37 2013 (r40987) +++ head/en_US.ISO8859-1/books/arch-handbook/mac/chapter.xml Sat Feb 16 17:47:00 2013 (r40988) @@ -5888,7 +5888,7 @@ Label destruction or <errorcode>EPERM</errorcode> for lack of privilege. This call may be made in a number of situations, including as a result of calls to &man.open.2; with - <symbol>O_CREAT</symbol>, &man.mknod.2;, &man.mkfifo.2;, and + <symbol>O_CREAT</symbol>, &man.mkfifo.2;, and others.</para> </sect3>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302161747.r1GHl1qk076679>