From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 29 23:26:49 2003 Return-Path: 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 5A80716A4CE for ; Wed, 29 Oct 2003 23:26:49 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95D2F43FB1 for ; Wed, 29 Oct 2003 23:26:47 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.9p2/8.12.9) with ESMTP id h9U7QkE7039851; Thu, 30 Oct 2003 00:26:46 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 30 Oct 2003 00:26:45 -0700 (MST) Message-Id: <20031030.002645.16965423.imp@bsdimp.com> To: vinodrk@hotmail.com From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 2.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: freeing data segment X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2003 07:26:49 -0000 In message: "Vinod R. Kashyap" writes: : : Hi, : : I have this huge data structure in the data segment of my scsi driver. This : data structure is initialized at driver build time, and is used only during : driver : initialization. I am trying to find out if I can free-up the memory it : occupies, : once I am done with the driver initialization. Does anyone know how to do : this? Put it in a module, and unload the module. Alternatively, load it from userland. Warner