.\" -*- coding: UTF-8 -*- .\" Copyright (c) 2009 Intel Corporation, Author Andi Kleen .\" Description based on comments in arch/x86/kernel/cpuid.c .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH CPUID 4 "31. März 2009" Linux Linux\-Programmierhandbuch .SH BEZEICHNUNG cpuid \- Gerät für den Zugriff auf die x86\-CPUID .SH BESCHREIBUNG CPUID ist eine Schnittstelle zur Abfrage von Informationen über die x86\-CPU. .PP Auf dieses Gerät greifen \fBlseek\fP(2) oder \fBpread\fP(2) auf die geeignete CPUID\-Ebene zu und lesen 16\-Byte\-Blöcke ein. Werden mehr als 16 Byte gelesen, bedeutet das das Lesen mehrerer aufeinander folgender Ebenen. .PP Die unteren 32 Bit der Dateiposition werden als das eingehende \fI%eax\fP\-Register verwendet und die oberen 32 Bit der Dateiposition für das eingehende \fI%ecx\fP, wobei letzteres für das »Zählen« der \fIeax\fP\-Ebenen (wie z. B. \fIeax=4\fP) vorgesehen ist. .PP Dieser Treiber verwendet \fI/dev/cpu/CPUNUM/cpuid\fP, wobei \fICPUNUM\fP die Minor\-Gerätenummer ist. Auf einem SMP\-Rechner greift der Treiber direkt auf die in \fI/proc/cpuinfo\fP angegebene CPU \fICPUNUM\fP zu. .PP Diese Datei ist geschützt. Sie kann nur vom Benutzer \fIroot\fP oder Mitgliedern der Gruppe \fIroot\fP gelesen werden. .SH ANMERKUNGEN Die CPUID\-Anweisung kann direkt durch ein Programm mittels Inline\-Assembler ausgeführt werden. Doch dieses Gerät ermöglicht bequemen Zugriff auf alle CPUs ohne die Affinität des Prozesses zu ändern. .PP Die meisten Informationen in \fIcpuid\fP stellt der Kernel in aufbereiteter Form entweder in \fI/proc/cpuinfo\fP oder durch Unterverzeichnisse in \fI/sys/devices/system/cpu\fP bereit. Direkter Zugriff auf die CPUID durch dieses Gerät sollte nur in Ausnahmefällen erfolgen. .PP Der \fIcpuid\fP\-Treiber wird nicht automatisch geladen. Im Fall modularer Kernel müssen Sie ihn vielleicht mit dem folgenden Befehl explizit laden: .PP .in +4n .EX $ modprobe cpuid .EE .in .PP bevor Sie ihn verwenden können. CPUID\-Funktionen, die weitere Eingabe\-Register erfordern, werden nicht unterstützt. .PP Sehr alte x86\-CPUs unterstützen CPUID nicht. .SH "SIEHE AUCH" Intel Corporation, Intel 64 and IA\-32 Architectures Software Developer's Manual, Volume 2A: Instruction Set Reference, A\-M, 3\-180 CPUID reference. .PP Intel Corporation, Intel Processor Identification and the CPUID Instruction, Application note 485. .SH KOLOPHON Diese Seite ist Teil der Veröffentlichung 4.16 des Projekts Linux\-\fIman\-pages\fP. Eine Beschreibung des Projekts, Informationen, wie Fehler gemeldet werden können sowie die aktuelle Version dieser Seite finden sich unter \%https://www.kernel.org/doc/man\-pages/. .SH ÜBERSETZUNG Die deutsche Übersetzung dieser Handbuchseite wurde von Martin Eberhard Schauer erstellt. Diese Übersetzung ist Freie Dokumentation; lesen Sie die GNU General Public License Version 3 oder neuer bezüglich der Copyright-Bedingungen. Es wird KEINE HAFTUNG übernommen. Wenn Sie Fehler in der Übersetzung dieser Handbuchseite finden, schicken Sie bitte eine E-Mail an .