From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 3 03:24:03 2005 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 19A7116A4CE for ; Thu, 3 Feb 2005 03:24:03 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id A575043D48 for ; Thu, 3 Feb 2005 03:24:02 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id j133O1KR072736; Wed, 2 Feb 2005 21:24:01 -0600 (CST) (envelope-from dan) Date: Wed, 2 Feb 2005 21:24:01 -0600 From: Dan Nelson To: Ashwin Chandra Message-ID: <20050203032401.GB65765@dan.emsphone.com> References: <005e01c50997$abd9b350$58e243a4@ash> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <005e01c50997$abd9b350$58e243a4@ash> X-OS: FreeBSD 5.3-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: KVM Linking 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, 03 Feb 2005 03:24:03 -0000 In the last episode (Feb 02), Ashwin Chandra said: > Hi, I am trying to create a kernel thread to monitor memory usage and > context switches. I wrote a simple program in the kern dir, updated > the files file in conf and i cant seem to link to the kvm > libraries...whats the easy way to include the lib/libkvm files and > directory without having to hack it through? Since you're already in the kernel, you can simply read the variables directly. -- Dan Nelson dnelson@allantgroup.com