PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
store.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <stdint.h>
6
7/**
8 * @brief Store
9 * @defgroup modules_acpi_aml_store Store
10 * @ingroup modules_acpi_aml
11 *
12 * @{
13 */
14
15/**
16 * @brief Store the value from the source object into the target object.
17 *
18 * Follows the rules in table 19.8 section 19.3.5.8 for the "Store" operator or any operator with a "Target" operand.
19 *
20 * Will initialize uninitialized objects as specified in section 19.3.5 table 19.5.
21 *
22 * If dest is a debug object, we use `aml_convert()` which will print the value to the console.
23 *
24 * @see Section 19.3.5.8 of the ACPI specification for more details.
25 *
26 * @param state Pointer to the current AML state.
27 * @param src Pointer to the source object to store from.
28 * @param dest Pointer to the destination object to store to, can be of type `AML_UNINITIALIZED`, can be `NULL` in which
29 * which case nothing is done.
30 * @return On success, `0`. On failure, `ERR` and `errno` is set.
31 */
33
34/** @} */
uint64_t aml_store(aml_state_t *state, aml_object_t *src, aml_object_t *dest)
Store the value from the source object into the target object.
Definition store.c:10
__UINT64_TYPE__ uint64_t
Definition stdint.h:17
ACPI object.
Definition object.h:447
AML State.
Definition state.h:25