Date: Mon, 11 Feb 2013 13:46:26 +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: r40942 - head/en_US.ISO8859-1/books/arch-handbook/driverbasics Message-ID: <201302111346.r1BDkQXD012859@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 @@ <indexterm><primary>kernel modules</primary><secondary>unloading</secondary></indexterm> <indexterm><primary>kernel modules</primary><secondary>listing</secondary></indexterm> - <para>The kld interface is used through the following - privileged commands:</para> + <para>The kld interface is used through:</para> <itemizedlist> <listitem><simpara><command>kldload</command> - loads a new kernel @@ -135,17 +134,17 @@ DECLARE_MODULE(skeleton, skel_mod, SI_SU <sect2> <title>Makefile</title> - <para>FreeBSD provides a makefile include that you can use to - quickly compile your kernel addition.</para> + <para>FreeBSD provides a makefile include to + quickly compile a kernel addition.</para> <programlisting>SRCS=skeleton.c KMOD=skeleton .include <bsd.kmod.mk></programlisting> - <para>Simply running <command>make</command> with this makefile + <para>Running <command>make</command> with this makefile will create a file <filename>skeleton.ko</filename> that can - be loaded into your system by typing: + be loaded into the kernel by typing: <screen>&prompt.root; <userinput>kldload -v ./skeleton.ko</userinput></screen> </para> </sect2> @@ -201,8 +200,8 @@ KMOD=skeleton the source tree.</para> <para>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.</para> + that are written to it and can then echo them back when + read.</para> <example> <title>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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302111346.r1BDkQXD012859>