一呼百應, "one call, a hundred responses"
Loading...
Searching...
No Matches
cpuid.hpp File Reference
#include <cstdint>
#include "attributes/common.hpp"
Include dependency graph for cpuid.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ein::cpuid_t
 result from calling the CPUID instruction More...
 

Namespaces

namespace  ein
 

Enumerations

enum class  ein::cpu_vendor : uint8_t {
  ein::intel =0 ,
  ein::amd =1 ,
  ein::unknown =2
}
 CPU vendor id. More...
 

Functions

cpuid_t ein::cpuid (int32_t eax, int32_t ecx) noexcept
 calls CPUID and returns all of the registers that it responds with.
 

Detailed Description

SPDX-FileType: Source
SPDX-FileCopyrightText: 2024 Edward Kmett <ekmett@gmail.com>
SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0

Definition in file cpuid.hpp.


Class Documentation

◆ ein::cpuid_t

struct ein::cpuid_t

result from calling the CPUID instruction

Definition at line 19 of file cpuid.hpp.

Class Members
int32_t eax
int32_t ebx
int32_t ecx
int32_t edx