From owner-svn-doc-all@FreeBSD.ORG Mon Feb 11 13:46:27 2013 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 147D7B47; Mon, 11 Feb 2013 13:46:27 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id E2854DA9; Mon, 11 Feb 2013 13:46:26 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1BDkQTW012860; Mon, 11 Feb 2013 13:46:26 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1BDkQXD012859; Mon, 11 Feb 2013 13:46:26 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201302111346.r1BDkQXD012859@svn.freebsd.org> From: Eitan Adler Date: Mon, 11 Feb 2013 13:46:26 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r40942 - head/en_US.ISO8859-1/books/arch-handbook/driverbasics X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2013 13:46:27 -0000 Author: eadler Date: Mon Feb 11 13:46:26 2013 New Revision: 40942 URL: http://svnweb.freebsd.org/changeset/doc/40942 Log: Fix igor nit picks Approved by: bcr (mentor) Modified: head/en_US.ISO8859-1/books/arch-handbook/driverbasics/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 Mon Feb 11 13:46:24 2013 (r40941) +++ head/en_US.ISO8859-1/books/arch-handbook/driverbasics/chapter.xml Mon Feb 11 13:46:26 2013 (r40942) @@ -72,8 +72,7 @@ kernel modulesunloading kernel moduleslisting - The kld interface is used through the following - privileged commands: + The kld interface is used through: kldload - loads a new kernel @@ -135,17 +134,17 @@ DECLARE_MODULE(skeleton, skel_mod, SI_SU Makefile - FreeBSD provides a makefile include that you can use to - quickly compile your kernel addition. + FreeBSD provides a makefile include to + quickly compile a kernel addition. SRCS=skeleton.c KMOD=skeleton .include <bsd.kmod.mk> - Simply running make with this makefile + Running make with this makefile will create a file skeleton.ko that can - be loaded into your system by typing: + be loaded into the kernel by typing: &prompt.root; kldload -v ./skeleton.ko @@ -201,8 +200,8 @@ KMOD=skeleton the source tree. This simple example pseudo-device remembers whatever values - you write to it and can then supply them back to you when you - read from it. + that are written to it and can then echo them back when + read. Example of a Sample Echo Pseudo-Device Driver for @@ -382,8 +381,7 @@ echo_write(struct cdev *dev __unused, st DEV_MODULE(echo,echo_loader,NULL);</programlisting> </example> - <para>With this driver loaded you should now be able to type - something like:</para> + <para>With this driver loaded try:</para> <screen>&prompt.root; <userinput>echo -n "Test Data" > /dev/echo</userinput> &prompt.root; <userinput>cat /dev/echo</userinput>