From owner-freebsd-questions@FreeBSD.ORG Thu Jul 2 10:53:55 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 191A51065673 for ; Thu, 2 Jul 2009 10:53:55 +0000 (UTC) (envelope-from deepak.katagade@gmail.com) Received: from mail-gx0-f210.google.com (mail-gx0-f210.google.com [209.85.217.210]) by mx1.freebsd.org (Postfix) with ESMTP id C9E2B8FC19 for ; Thu, 2 Jul 2009 10:53:54 +0000 (UTC) (envelope-from deepak.katagade@gmail.com) Received: by gxk6 with SMTP id 6so975478gxk.19 for ; Thu, 02 Jul 2009 03:53:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=/BAiLV/WERLSl21J+dJie3LEyCtXYM6wOvbymiy18Mw=; b=NwpdmydPwGTb4zA3qpIACll+UleQcMHA4xmv40hT115gAr0CasLjm+ooKG3uA9dl/S aCas5ySg5E+2VLuPEbQgcYHNI2XmlQBjMU1v8qYfFDEZ4PLgPC3aBPUyZDlnwdPOT4Lx iqBwq9hze031DNg55OQdTjdbP8yF4z3OoCsnI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=KqWVnO9Z3pz7OaG5WgVjdyHqrPez5bBXK1GnWPQgc77yI5Z7jRm6oricMpPv+G+Zom +4SP9XA3eI4Abk5hxu6WSyP3Us7R0JhUR70ox0Mui81L7Ipyw3RFjfWY3bVZ7g8YdpxN Vzaxig65GqK+wJzQfqyIG+hHYJyEi1agheI1U= MIME-Version: 1.0 Received: by 10.90.99.3 with SMTP id w3mr3736483agb.50.1246530448519; Thu, 02 Jul 2009 03:27:28 -0700 (PDT) Date: Thu, 2 Jul 2009 15:57:28 +0530 Message-ID: <6f0f8ee70907020327s4588952eq7281050554a41ac5@mail.gmail.com> From: Deepak Madhusudan To: freebsd-questions@freebsd.org X-Mailman-Approved-At: Thu, 02 Jul 2009 13:15:15 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: How to get SystemMemorySize? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jul 2009 10:53:55 -0000 Hi All, In linux driver in order to get the system memory size we can get it using the following call. struct sysinfo si; si_meminfo(&si); return (si.tatotalram); Is there any similar call in freebsd to get the following information.Currently i am using freebsd 6.3.Please let me know. Thanks and regards, Deepak