Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jan 2003 15:27:29 -0800
From:      David Schultz <dschultz@uclink.Berkeley.EDU>
To:        Mark Santcroos <marks@ripe.net>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: nswap
Message-ID:  <20030117232729.GA5908@HAL9000.homeunix.com>
In-Reply-To: <20030117000917.GA7277@laptop.6bone.nl>
References:  <20030117000917.GA7277@laptop.6bone.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Thus spake Mark Santcroos <marks@ripe.net>:
> in <sys/systm.h>:
> extern int nswap;   /* size of swap space */
> 
> in <vm/vm_swap.c>:
> static int nswap;   /* first block after the interleaved devs */
> 
> Is the extern pointing to this variable? (It seems so, don't see any other
> such variable in the three)
> If so, is there any problem with making nswap non-static?

It's a constant that is only relevant to the management of the
swap allocation bitmap, so it is properly static.  It shouldn't be
declared in sys/systm.h.

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




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