PatchworkOS
966e257
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
store.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
modules/acpi/aml/object.h
>
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
*/
32
uint64_t
aml_store
(
aml_state_t
* state,
aml_object_t
* src,
aml_object_t
* dest);
33
34
/** @} */
aml_store
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
object.h
stdint.h
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:17
aml_object_t
ACPI object.
Definition
object.h:447
aml_state_t
AML State.
Definition
state.h:25
include
modules
acpi
aml
runtime
store.h
Generated on Mon Dec 15 2025 21:55:53 for PatchworkOS by
1.9.8