Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* How to get digital-unix kernel address memory map ?
@ 2000-02-01  5:00 Kim CheaKyu
  2000-02-01  5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 1 reply; 2+ messages in thread
From: Kim CheaKyu @ 2000-02-01  5:00 UTC (permalink / raw)


Hi~
I want to write program like monitor, top.. etc.
These programs use /dev/kmem device file. kmem device file map into
kernel address space.
I want to know kernel address map.

I work on digital unix environment.

bye






^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to get digital-unix kernel address memory map ?
  2000-02-01  5:00 How to get digital-unix kernel address memory map ? Kim CheaKyu
@ 2000-02-01  5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2000-02-01  5:00 UTC (permalink / raw)



In article <38965ADD.36EE90E1@klnet.co.kr>, Kim CheaKyu <mind@klnet.co.kr> writes:

>I want to write program like monitor, top.. etc.
>These programs use /dev/kmem device file. kmem device file map into
>kernel address space.
>I want to know kernel address map.

You want to either get a copy of the system sources so that you
can look at the all the drivers and subsystems to see what data
structures are available and what they're called, or look at the
suite of existing programs to see what they use.

Many kernel data structures do have documented, callabale interfaces
to get information from them.  Take a look at the getsysinfo(2)
system call and the include files it uses.  Other callable interfaces
are not documented, making them subject to change.  For those you
need example programs or kernel sources.  You can expect a kernel
source license to be fairly expensive.

Some interesting data structures don't have callable interfaces.  In
these cases you need to know the structure of the data and the name
of the data structure.  Many data structures are defined in system
include files and you may be able to derive the name from a nm(1)
listing of the kernel.  Using dbx(1) or a custom program, you can
look at the data and see whether it is interesting.

The programs you mentioned can serve as example of how to translate
data structure names to addresses and how to access those addresses
within kernel memory.

--
Alan Rollow				alan@nabeth.cxo.dec.com




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-02-01  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-01  5:00 How to get digital-unix kernel address memory map ? Kim CheaKyu
2000-02-01  5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox