From owner-freebsd-hackers Mon Jan 20 6:52:13 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D538B37B401 for ; Mon, 20 Jan 2003 06:52:11 -0800 (PST) Received: from birch.ripe.net (birch.ripe.net [193.0.1.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1160D43F13 for ; Mon, 20 Jan 2003 06:52:07 -0800 (PST) (envelope-from marks@ripe.net) Received: from laptop.6bone.nl (cow.ripe.net [193.0.1.239]) by birch.ripe.net (8.12.5/8.11.6) with SMTP id h0KEq5Aq022800 for ; Mon, 20 Jan 2003 15:52:05 +0100 Received: (nullmailer pid 4947 invoked by uid 1000); Mon, 20 Jan 2003 14:52:05 -0000 Date: Mon, 20 Jan 2003 15:52:05 +0100 From: Mark Santcroos To: hackers@FreeBSD.ORG Subject: Re: nswap Message-ID: <20030120145205.GA4911@laptop.6bone.nl> References: <20030117000917.GA7277@laptop.6bone.nl> <20030117232729.GA5908@HAL9000.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030117232729.GA5908@HAL9000.homeunix.com> User-Agent: Mutt/1.4i X-Handles: MS6-6BONE, MS18417-RIPE Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jan 17, 2003 at 03:27:29PM -0800, David Schultz wrote: > Thus spake Mark Santcroos : > > in : > > extern int nswap; /* size of swap space */ > > > > in : > > 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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message