Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include "CSystem.hpp"
#include "core/CStringTools.hpp"
#include "core/system.hpp"
#include "core/utils.hpp"
#include <cstdarg>
#include <cstdio>
#include <fstream>
#include <iostream>
#include <memory>
#include <syslog.h>
#include <thread>
Functions | |
static void | native_cpuid (uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) |
Processor info adn feature bits. | |
static bool | prvCheckDiskIsUsb (const std::string &diskName) |
Private function that checks if a disk is removable. | |
static int32_t | prvExecuteCommand (const std::string &command) |
Private function that execute a system's command. | |
static void | prvGetCPUInfo (uint32_t *p, uint32_t ax) |
Private function that get the CPU information. | |
static std::string | prvGetDeviceSerial (const std::string &device) |
Private function that returns the device's serial. | |
|
static |
Processor info adn feature bits.
eax | The value of register eax |
ebx | The value of register ebx |
ecx | The value of register ecx (can be input and output) |
edx | The value of register edx |
|
static |
Private function that checks if a disk is removable.
diskName | String that contain the name of disk |
|
static |
Private function that execute a system's command.
command | String that contain the command to execute |
|
static |
Private function that get the CPU information.
p | The value of register ebx |
ax | Final result |
|
static |
Private function that returns the device's serial.
device | The device whence get the serial |