On Fri, Jan 17, 2003 at 03:27:29PM -0800, David Schultz wrote:
> Thus spake Mark Santcroos <[EMAIL PROTECTED]>:
> > 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.

I need to get access to the swap interface. More precisely, I want to turn
it off.

Either some of the values and functions need to be made global or the
interface should be changed.

I need this for software suspending on which I am working. (Page in processes 
and turn off swap devices before I write out the memory to it)

Is it worth my time to produce patches that change the swapoff interface?

Mark

-- 
Mark Santcroos                    RIPE Network Coordination Centre
http://www.ripe.net/home/mark/    New Projects Group/TTM

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to