old-www/LDP/lpg/node145.html

38 lines
2.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1-c (Feb 29, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>10.4.1 kvm routines</TITLE>
<META NAME="description" CONTENT="10.4.1 kvm routines">
<META NAME="keywords" CONTENT="lpg">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<LINK REL=STYLESHEET HREF="lpg.css">
</HEAD>
<BODY LANG="EN">
<A NAME="tex2html2146" HREF="node146.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME="tex2html2144" HREF="node144.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME="tex2html2138" HREF="node144.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME="tex2html2148" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html2147" HREF="node146.html">10.4.2 ptrace and the </A>
<B>Up:</B> <A NAME="tex2html2145" HREF="node144.html">10.4 Process information and </A>
<B> Previous:</B> <A NAME="tex2html2139" HREF="node144.html">10.4 Process information and </A>
<BR> <P>
<H2><A NAME="SECTION001141000000000000000">10.4.1 <EM>kvm</EM> routines</A></H2>
<P>
Many systems use routines such as <EM>kvm_open</EM>, <EM>kvm_nlist</EM>,
and <EM>kvm_read</EM> to access kernel data structures directly via
the <EM>/dev/kmem</EM> device. In general, these programs will open
<EM>/dev/kmem</EM>, read the kernel's symbol table, locate data
in the running kernel with this table, and read the appropriate
addresses in the kernel address space with these routines. Because
this requires the user program and the kernel to agree upon the size
and format of data structures read in this fashion, such programs
often have to be rebuilt for each kernel revision, CPU type, and so
forth.
<P>
<BR> <HR>
<P><ADDRESS>
<I>Converted on: <BR>
Fri Mar 29 14:43:04 EST 1996</I>
</ADDRESS>
</BODY>
</HTML>