Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
tee_param Struct Reference

Tee parameter. More...

#include <tee.h>

Data Fields

uint64_t attr
 attributes
 
uint64_t a
 if a memref, offset into the shared memory object, else a value
 
uint64_t b
 if a memref, size of the buffer, else a value parameter
 
uint64_t c
 if a memref, shared memory identifier, else a value parameter
 

Detailed Description

Tee parameter.

attr & TEE_PARAM_ATTR_TYPE_MASK indicates if memref or value is used in the union. TEE_PARAM_ATTR_TYPE_VALUE_* indicates value and TEE_PARAM_ATTR_TYPE_MEMREF_* indicates memref. TEE_PARAM_ATTR_TYPE_NONE indicates that none of the members are used.

Shared memory is allocated with TEE_IOC_SHM_ALLOC which returns an identifier representing the shared memory object. A memref can reference a part of a shared memory by specifying an offset (a) and size (b) of the object. To supply the entire shared memory object set the offset (a) to 0 and size (b) to the previously returned size of the object.

Field Documentation

◆ a

uint64_t tee_param::a

if a memref, offset into the shared memory object, else a value

◆ attr

uint64_t tee_param::attr

attributes

◆ b

uint64_t tee_param::b

if a memref, size of the buffer, else a value parameter

◆ c

uint64_t tee_param::c

if a memref, shared memory identifier, else a value parameter


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