diff --git a/en_US.ISO8859-1/books/arch-handbook/driverbasics/chapter.xml b/en_US.ISO8859-1/books/arch-handbook/driverbasics/chapter.xml index 845dd93b82..6e9e5e38be 100644 --- a/en_US.ISO8859-1/books/arch-handbook/driverbasics/chapter.xml +++ b/en_US.ISO8859-1/books/arch-handbook/driverbasics/chapter.xml @@ -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_SUB_KLD, SI_ORDER_ANY); 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, struct uio *uio, int ioflag __unused) 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>