TA-REF
TEEC_SharedMemory Struct Reference

#include <tee_client_api.h>

Public Attributes

void * buffer
 
size_t size
 
uint32_t flags
 
int id
 
size_t alloced_size
 
void * shadow_buffer
 
int registered_fd
 
bool buffer_allocated
 

Detailed Description

struct TEEC_SharedMemory - Memory to transfer data between a client application and trusted code.

Parameters
bufferThe memory buffer which is to be, or has been, shared with the TEE.
sizeThe size, in bytes, of the memory buffer.
flagsBit-vector which holds properties of buffer. The bit-vector can contain either or both of the TEEC_MEM_INPUT and TEEC_MEM_OUTPUT flags.

A shared memory block is a region of memory allocated in the context of the client application memory space that can be used to transfer data between that client application and a trusted application. The user of this struct is responsible to populate the buffer pointer.

Member Data Documentation

◆ alloced_size

size_t TEEC_SharedMemory::alloced_size

◆ buffer

void* TEEC_SharedMemory::buffer

◆ buffer_allocated

bool TEEC_SharedMemory::buffer_allocated

◆ flags

uint32_t TEEC_SharedMemory::flags

◆ id

int TEEC_SharedMemory::id

◆ registered_fd

int TEEC_SharedMemory::registered_fd

◆ shadow_buffer

void* TEEC_SharedMemory::shadow_buffer

◆ size

size_t TEEC_SharedMemory::size

The documentation for this struct was generated from the following file: