PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
copy.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <stdint.h>
6
7/**
8 * @brief Copy
9 * @defgroup modules_acpi_aml_copy Copy
10 * @ingroup modules_acpi_aml
11 *
12 * @{
13 */
14
15/**
16 * @brief Copies the data and type from the source object to the destination object, completly overwriting it.
17 *
18 * @param src Pointer to the source object to copy from.
19 * @param dest Pointer to the destination object to copy to, can be of type `AML_UNINITIALIZED`.
20 * @return On success, `0`. On failure, `ERR` and `errno` is set.
21 */
23
24/**
25 * @brief Copies the data from the source object to the destination object.
26 *
27 * Follows the rules in table 19.8 section 19.3.5.8 for the "CopyObject" operator are applied.
28 *
29 * It will initialize uninitialized objects as specified in section 19.3.5 table 19.5.
30 *
31 * @see Sections 19.3.5.8 of the ACPI specification for more details.
32 *
33 * @param state Pointer to the current AML state.
34 * @param src Pointer to the source object to copy from.
35 * @param dest Pointer to the destination object to copy to, can be of type `AML_UNINITIALIZED`.
36 * @return On success, `0`. On failure, `ERR` and `errno` is set.
37 */
39
40/** @} */
uint64_t aml_copy_data_and_type(aml_object_t *src, aml_object_t *dest)
Copies the data and type from the source object to the destination object, completly overwriting it.
Definition copy.c:11
uint64_t aml_copy_object(aml_state_t *state, aml_object_t *src, aml_object_t *dest)
Copies the data from the source object to the destination object.
Definition copy.c:93
__UINT64_TYPE__ uint64_t
Definition stdint.h:17
ACPI object.
Definition object.h:447
AML State.
Definition state.h:25