Writing portable code that reads /dev/kmem
Dan Bernstein
brnstnd at kramden.acf.nyu.edu
Sun May 26 07:41:27 AEST 1991
In article <76560 at brunix.UUCP> cgy at cs.brown.edu (Curtis Yarvin) writes:
> >I've heard rumors that there exists a kmem-access library for BSD4.3.
> It should never have had to exist in the first place; but there is. -lkvm
> will link with it.
-lkvm is a Sun-ism. You can get almost all the same functions out of
the much more portable kmem and getuser libraries inside my kstuff
package.
> But bear in
> mind that when we say "symbol," we're talking about internal kernel
> variables. This stuff is by definition unportable.
The main point of kstuff is to provide higher-level, portable
interfaces to most of the useful kernel symbols.
---Dan
More information about the Comp.unix.wizards
mailing list