struct TEEC_RegisteredMemoryReference

Defined at line 324 of file ../../src/security/lib/tee/tee-client-api/include/tee-client-api/tee-client-types.h

TEEC_RegisteredMemoryReference

This type defines a Registered Memory Reference, i.e., that uses a pre-registered or

pre-allocated Shared Memory block. It is used as a TEEC_Operation parameter when the

corresponding parameter type is one of TEEC_MEMREF_WHOLE, TEEC_MEMREF_PARTIAL_INPUT,

TEEC_MEMREF_PARTIAL_OUTPUT, or TEEC_MEMREF_PARTIAL_INOUT.

Fields:

parent A pointer to a TEEC_SharedMemory structure. The memory reference refers either to the

whole Shared Memory or to a partial region within the Shared Memory block, depending on

the parameter type. The data flow direction of the memory reference must be consistent

with the flags defined in the parent Shared Memory Block. Note that the parent field

must not be NULL. To encode a null Memory Reference, the Client Application must use a

Temporary Memory Reference with the buffer field set to NULL.

size The size of the referenced memory region, in bytes.

offset The offset, in bytes, of the referenced memory region from the start of the Shared

Memory block.

Public Members

TEEC_SharedMemory * parent
size_t size
size_t offset