Date: Mon, 26 Nov 2001 13:08:59 -0800 (PST) From: Doug White <dwhite@resnet.uoregon.edu> To: Emiel Kollof <coolvibe@hackerheaven.org> Cc: <freebsd-current@FreeBSD.ORG> Subject: Re: kvm_getswapinfo() not backwards compatible? Message-ID: <Pine.BSF.4.33.0111261307060.60419-100000@resnet.uoregon.edu> In-Reply-To: <20011126193305.C546@laptop.hackerheaven.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 26 Nov 2001, Emiel Kollof wrote: > Hey gang, > > I have the following piece of code: > > extern void > getswapload() > { > > struct kvm_swap swap[1]; > int pgsize, > swapused, n; > > kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, "kvm_open"); This looks wrong .... I think you want the first three arguments to be NULL, not "/dev/null". /dev/null is not a kernel image. :-) Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org 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?Pine.BSF.4.33.0111261307060.60419-100000>