📄 node2.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 98.1 release (February 19th, 1998)
originally by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Introduction</TITLE>
<META NAME="description" CONTENT="Introduction">
<META NAME="keywords" CONTENT="mpg">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="STYLESHEET" HREF="mpg.css">
<LINK REL="next" HREF="node11.html">
<LINK REL="previous" HREF="node1.html">
<LINK REL="up" HREF="mpg.html">
<LINK REL="next" HREF="node3.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html402"
HREF="node3.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="next_motif.gif"></A>
<A NAME="tex2html398"
HREF="mpg.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="up_motif.gif"></A>
<A NAME="tex2html392"
HREF="node1.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="previous_motif.gif"></A>
<A NAME="tex2html400"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
SRC="contents_motif.gif"></A>
<A NAME="tex2html401"
HREF="node34.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
SRC="index_motif.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html403"
HREF="node3.html">Who Should Read This</A>
<B> Up:</B> <A NAME="tex2html399"
HREF="mpg.html">Linux Kernel Module Programming</A>
<B> Previous:</B> <A NAME="tex2html393"
HREF="node1.html">Contents</A>
<BR>
<BR>
<!--End of Navigation Panel-->
<H1><A NAME="SECTION00200000000000000000"> </A><A NAME="introduction"> </A>
<BR>
Introduction
</H1>
<P>
So, you want to write a kernel module. You know C, you've written a
number of normal programs to run as processes, and now you want to get
to where the real action is, to where a single wild pointer can wipe out
your file system and a core dump means a reboot.
<P>
Well, welcome to the club. I once had a wild pointer wipe an
important directory under DOS (thankfully, now it stands for the <B>D</B>ead
<B>O</B>perating <B>S</B>ystem),
and I don't see why living under Linux should be any safer.
<A NAME="56"> </A>
<P>
<B>Warning:</B> I wrote this and checked the program under versions 2.0.35
and 2.2.3 of the kernel running on a Pentium. For the most part, it should
work on other CPUs and on other versions of the kernel, as long as they are
2.0.x or 2.2.x, but I can't promise anything. One exception is chapter
<A HREF="node24.html#int-handler">11</A>, which should not work on any architecture except for
x86.
<P>
<BR><HR>
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"> </A>
<UL>
<LI><A NAME="tex2html404"
HREF="node3.html">Who Should Read This</A>
<LI><A NAME="tex2html405"
HREF="node4.html">Note on the Style</A>
<LI><A NAME="tex2html406"
HREF="node5.html">Changes</A>
<UL>
<LI><A NAME="tex2html407"
HREF="node6.html">New in version 1.0.1</A>
<LI><A NAME="tex2html408"
HREF="node7.html">New in version 1.1.0</A>
</UL>
<LI><A NAME="tex2html409"
HREF="node8.html">Acknowledgements</A>
<UL>
<LI><A NAME="tex2html410"
HREF="node9.html">For version 1.0.1</A>
<LI><A NAME="tex2html411"
HREF="node10.html">For version 1.1.0</A>
</UL></UL>
<!--End of Table of Child-Links-->
<BR><HR>
<ADDRESS>
<I></I>
<BR><I>1999-05-19</I>
</ADDRESS>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -