Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 May 1999 03:33:44 +0000
From:      Robert Garrett <eagle@phc.igs.net>
To:        Poul-Henning Kamp <phk@FreeBSD.ORG>
Cc:        current@FreeBSD.ORG
Subject:   Re: simple (but important) task for junior kernel hacker
Message-ID:  <19990512033344.E21016@phc.igs.net>
In-Reply-To: <3694.926496249@critter.freebsd.dk>
References:  <3694.926496249@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 12 May 1999 at 10:04:09 +0200, Poul-Henning Kamp wrote:
> 
> I don't have time just now to attend this particular detail, which
> manifests itself by swapinfo/pstat -p showing "/dev/(null)" for
> device name.
> 
> The problem in short is that libkvm:kvm_getswapinfo.c has it's
> fingers in the kernels memory and pulls out a dev_t without knowing
> how to (and it shouldn't be taught this!) convert it to a udev_t.
> 
> The Right Way to solve this problem is to rewrite libkvm:kvm_getswapinfo.c
> to pick up the information using some (for this purpose constructed)
> sysctl variables (sysctlbyname(3) please!), and let the kernel convert
> the dev_t to udev_t before passing it out to userland.
> 
> So for any aspiring kernel hackers out there: have at it.  Patches
> accepted.
> 
> In general libkvm should not grovel around in a running kernel but
> only use sysctlbyname(3).
> 
> --
the only place in the entire libkvm where a dev_t is used is
kvm_proc.c line 230 this particular section completely looses me

Rob




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990512033344.E21016>