PatchworkOS
Loading...
Searching...
No Matches
Copy

Copy. More...

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.
 

Detailed Description

Copy.

Function Documentation

◆ aml_copy_data_and_type()

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

References AML_ARG, AML_BUFFER_FIELD, aml_buffer_field_store(), aml_convert_result(), aml_copy_data_and_type(), aml_copy_object(), AML_FIELD_UNIT, aml_field_unit_store(), AML_LOCAL, AML_OBJECT_NAMED, aml_object_new(), AML_OBJECT_REFERENCE, aml_type_to_string(), AML_UNINITIALIZED, aml_object_t::arg, aml_object_t::bufferField, EINVAL, ENOSYS, ERR, errno, aml_object_t::fieldUnit, aml_object_t::local, LOG_ERR, NULL, aml_object_t::objectReference, aml_object_reference_obj_t::target, aml_arg_obj_t::value, and aml_local_obj_t::value.

Referenced by aml_copy_object(), aml_def_copy_object_read(), aml_state_result_get(), and aml_store().