PatchworkOS  a7b3d61
A non-POSIX operating system.
Loading...
Searching...
No Matches
Copy

Copy. More...

Collaboration diagram for Copy:

Detailed Description

Copy.

Functions

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.
 
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.
 

Function Documentation

◆ aml_copy_data_and_type()

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.

Parameters
srcPointer to the source object to copy from.
destPointer to the destination object to copy to, can be of type AML_UNINITIALIZED.
Returns
On success, 0. On failure, ERR and errno is set.

Definition at line 11 of file copy.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ aml_copy_object()

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.

Follows the rules in table 19.8 section 19.3.5.8 for the "CopyObject" operator are applied.

It will initialize uninitialized objects as specified in section 19.3.5 table 19.5.

See also
Sections 19.3.5.8 of the ACPI specification for more details.
Parameters
statePointer to the current AML state.
srcPointer to the source object to copy from.
destPointer to the destination object to copy to, can be of type AML_UNINITIALIZED.
Returns
On success, 0. On failure, ERR and errno is set.

Definition at line 93 of file copy.c.

Here is the call graph for this function:
Here is the caller graph for this function: