From owner-freebsd-hackers Thu Nov 7 14:13: 6 2002 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 AA4FE37B40C for ; Thu, 7 Nov 2002 14:13:05 -0800 (PST) Received: from samx.dyndns.org (ool-18bd9e18.dyn.optonline.net [24.189.158.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2EF843E6E for ; Thu, 7 Nov 2002 14:13:04 -0800 (PST) (envelope-from sam@pcuf.fi) Received: from samx.dyndns.org (sam@localhost [127.0.0.1]) by samx.dyndns.org (8.12.6/8.12.6) with ESMTP id gA7MCkHq018044 for ; Thu, 7 Nov 2002 17:12:47 -0500 (EST) (envelope-from sam@pcuf.fi) Content-Type: text/plain; charset="us-ascii" From: Sam Reply-To: sam@pcuf.fi To: freebsd-hackers@FreeBSD.org Subject: cpu class & features Date: Thu, 7 Nov 2002 17:12:46 -0500 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200211071712.46671.sam@pcuf.fi> 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 I'm writing an application that needs info on the machine cpu architectur= e, the cpu class, and the cpu features. The machine cpu architecture seems to be available through sysctl CTL_HW HW_MACHINE_ARCH. However, I can't find any mention of what string values this returns. Is there a list of possible current v= alues somewhere? For cpu class, I can't seem to find anything. The include file has the kind of info I'm looking for defined (for i3= 86), but I can't seem to find if it is available for userland programs. CPU features seem to be defined in (for i386), but I can't find if they are available for userland programs either. I suppos= e they could be parsed from dmesg, but that would be a pretty hacky way of doing it. Is there any better way? Any help would be appreciated. Sam, sam@pcuf.fi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message