PatchworkOS  19e446b
A non-POSIX operating system.
Loading...
Searching...
No Matches
Buffer Field

Buffer Field. More...

Collaboration diagram for Buffer Field:

Detailed Description

Buffer Field.

Functions

uint64_t aml_buffer_field_load (aml_buffer_field_t *bufferField, aml_object_t *out)
 Read the value stored in a BufferField and store it in the out object.
 
uint64_t aml_buffer_field_store (aml_buffer_field_t *bufferField, aml_object_t *in)
 Write a value to a BufferField.
 

Function Documentation

◆ aml_buffer_field_load()

uint64_t aml_buffer_field_load ( aml_buffer_field_t bufferField,
aml_object_t out 
)

Read the value stored in a BufferField and store it in the out object.

A BufferField is a view into a buffer, it has a bit offset and a bit size, and can be used to read or write parts of the buffer.

See also
modules_acpi_aml_evaluate
Parameters
bufferFieldThe buffer field to read from.
outPointer to the buffer where the result will be stored, will be an integer or a buffer.
Returns
On success, 0. On failure, ERR and errno is set.

Definition at line 9 of file buffer_field.c.

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

◆ aml_buffer_field_store()

uint64_t aml_buffer_field_store ( aml_buffer_field_t bufferField,
aml_object_t in 
)

Write a value to a BufferField.

A BufferField is a view into a buffer, it has a bit offset and a bit size, and can be used to read or write parts of the buffer.

See also
modules_acpi_aml_evaluate
Parameters
bufferFieldThe buffer field to write to.
inPointer to the object containing the value to write, must be an integer or a buffer.
Returns
On success, 0. On failure, ERR and errno is set.

Definition at line 62 of file buffer_field.c.

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