mirror of https://github.com/hashcat/hashcat.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
907 B
38 lines
907 B
3 years ago
|
/**
|
||
|
* Author......: See docs/credits.txt
|
||
|
* License.....: MIT
|
||
|
*/
|
||
|
|
||
|
#ifndef _EXT_SYSFS_CPU_H
|
||
|
#define _EXT_SYSFS_CPU_H
|
||
|
|
||
|
#include <stdbool.h>
|
||
|
|
||
|
static const char SYSFS_HWMON[] = "/sys/class/hwmon";
|
||
|
|
||
|
static const char SENSOR_CORETEMP[] = "coretemp";
|
||
|
static const char SENSOR_K10TEMP[] = "k10temp";
|
||
|
static const char SENSOR_K8TEMP[] = "k8temp";
|
||
|
static const char SENSOR_ACPITZ[] = "acpitz";
|
||
|
|
||
|
typedef int HM_ADAPTER_SYSFS_CPU;
|
||
|
|
||
|
typedef void *SYSFS_CPU_LIB;
|
||
|
|
||
|
typedef struct hm_sysfs_cpu_lib
|
||
|
{
|
||
|
// currently not using libudev, because it can only read values, not set them, so using /sys instead
|
||
|
|
||
|
SYSFS_CPU_LIB lib;
|
||
|
|
||
|
} hm_sysfs_cpu_lib_t;
|
||
|
|
||
|
typedef hm_sysfs_cpu_lib_t SYSFS_CPU_PTR;
|
||
|
|
||
|
bool sysfs_cpu_init (void *hashcat_ctx);
|
||
|
void sysfs_cpu_close (void *hashcat_ctx);
|
||
|
char *hm_SYSFS_CPU_get_syspath_hwmon ();
|
||
|
int hm_SYSFS_CPU_get_temperature_current (void *hashcat_ctx, int *val);
|
||
|
|
||
|
#endif // _EXT_SYSFS_CPU_H
|