type
status
date
slug
summary
tags
category
icon
password
The code is based on: https://gitlab.com/riseproject/riscv-optee/optee_os/-/tree/dev-optee-mpxy
Commit ID:
75df9ba41a404aec897399ead0ff0aebcbff48ca
TEEC_InitializeContext()
teec_open_dev()
- Open
/dev/teeX
device.
TEEC_OpenSession()
- Call
ioctl()
withTEE_IOC_OPEN_SESSION
command. - This will eventually trap to Linux Kernel’s
tee_ioctl()
.
TEEC_InvokeCommand()
- Call
ioctl()
withTEE_IOC_INVOKE
command. The command ID for TA is passed througharg->func
.
TEEC_CloseSession()
- Call
ioctl()
withTEE_IOC_CLOSE_SESSION
command.
TEEC_FinalizeContext()
- Close
/dev/teeX
device.