9.102 getcpuinfo

struct cpuinfo {
    uint64_t conf_count;  // Cores physically present in the system.
    uint64_t onln_count;  // Logical cores being used by the OS.
    char model_name[64];  // 0-padded
    char vendor_name[64]; // 0-padded
    uint32_t base_mhz;    // Base frequency in MHz.
    uint32_t max_mhz;     // Max frequency in MHz.
    uint32_t ref_mhz;     // Reference frequency in MHz.
};

int getcpuinfo(struct cpuinfo *info);

This syscall gets information about the CPU or CPUs running on the system.

This syscall returns 0 on success and -1 on failure, with errno:

EFAULT

The passed buffers were pointing to invalid memory.