PatchworkOS
Loading...
Searching...
No Matches
acpi.c File Reference
#include <kernel/acpi/acpi.h>
#include <kernel/acpi/aml/aml.h>
#include <kernel/acpi/devices.h>
#include <kernel/acpi/tables.h>
#include <kernel/fs/mount.h>
#include <kernel/log/log.h>
#include <kernel/log/panic.h>
#include <kernel/mem/pmm.h>
#include <boot/boot_info.h>
#include <string.h>

Go to the source code of this file.

Functions

bool acpi_is_checksum_valid (void *table, uint64_t length)
 Check if the sum of all bytes in a table is 0.
 
dentry_tacpi_get_sysfs_root (void)
 Retrieve the sysfs root directory for ACPI.
 
void acpi_reclaim_memory (const boot_memory_map_t *map)
 Reclaim ACPI memory regions.
 

Variables

static bool mountInitialzed = false
 
static mount_tmount = NULL
 

Variable Documentation

◆ mount

◆ mountInitialzed

bool mountInitialzed = false
static

Definition at line 14 of file acpi.c.

Referenced by acpi_get_sysfs_root().