FreeBSD Bugzilla – Attachment 19664 Details for
Bug 34914
More fixup for Developers' Handbook : Driver Basics chapter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.57 KB, created by
setantae
on 2002-02-13 21:00:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
setantae
Created:
2002-02-13 21:00:01 UTC
Size:
2.57 KB
patch
obsolete
>--- doc/en_US.ISO8859-1/books/developers-handbook/driverbasics/chapter.sgml.old Wed Feb 13 20:29:18 2002 >+++ doc/en_US.ISO8859-1/books/developers-handbook/driverbasics/chapter.sgml Wed Feb 13 20:45:07 2002 >@@ -49,7 +49,7 @@ > changes.</para> > > <para>The kld interface is used through the following >- administrator commands : >+ privileged commands : > > <itemizedlist> > <listitem><simpara><command>kldload</command> - loads a new kernel >@@ -123,8 +123,7 @@ > <para>Simply running <command>make</command> with this makefile > will create a file <filename>skeleton.ko</filename> that can > be loaded into your system by typing : >-<screen> &prompt.root >- kldload -v ./skeleton.ko</screen> >+<screen>&prompt.root; <userinput>kldload -v ./skeleton.ko</userinput></screen> > </para> > </sect2> > </sect1> >@@ -138,7 +137,7 @@ > 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> >+ create your own device nodes with <command>mknod</command>. > </para> > > <sect2> >@@ -146,7 +145,7 @@ > > <para>The <command>mknod</command> command requires four > arguments to create a device node. You must specify the name >- of this device node, the type of device, the major number of >+ of the device node, the type of device, the major number of > the device, and the minor number of the device.</para> > </sect2> > >@@ -158,7 +157,7 @@ > 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 nice.</para> >+ progress, but it is already working quite nicely.</para> > </sect2> > > </sect1> >@@ -337,13 +336,13 @@ > <para>To install this driver you will first need to make a node on > your filesystem with a command such as : </para> > >- <screen>&prompt.root mknod /dev/echo c 33 0</screen> >+ <screen>&prompt.root; <userinput>mknod /dev/echo c 33 0</userinput></screen> > > <para>With this driver loaded you should now be able to type > something like :</para> > >- <screen>&prompt.root echo -n "Test Data" > /dev/echo >-&prompt.root cat /dev/echo >+ <screen>&prompt.root; <userinput>echo -n "Test Data" > /dev/echo</userinput> >+&prompt.root; <userinput>cat /dev/echo</userinput> > Test Data</screen> > > <para>Real hardware devices in the next chapter..</para>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 34914
: 19664