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 [EMAIL PROTECTED] | www.FreeBSD.org To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message