Home
last modified time | relevance | path

Searched hist:"5 a5d1173d9cec195cc8dec790c1343b5dfcc3d3c" (Results 1 – 2 of 2) sorted by relevance

/optee_os/core/include/kernel/
H A Dts_manager.h5a5d1173d9cec195cc8dec790c1343b5dfcc3d3c Fri Sep 01 18:22:14 UTC 2023 Jens Wiklander <jens.wiklander@linaro.org> core: add release_state to struct ts_ops

Adds the optional function pointer release_state() to struct ts_ops.
This callback will be called when a TA has panicked and as many
resources as possible need to be released early. release_state() is a
subset of the destroy() callback. When the destroy() is called
eventually it will free the entire state of the TA regardless if
release_state() has been called before or not. This allows freeing
resources while there are still open sessions to the TA.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
/optee_os/core/kernel/
H A Duser_ta.c5a5d1173d9cec195cc8dec790c1343b5dfcc3d3c Fri Sep 01 18:22:14 UTC 2023 Jens Wiklander <jens.wiklander@linaro.org> core: add release_state to struct ts_ops

Adds the optional function pointer release_state() to struct ts_ops.
This callback will be called when a TA has panicked and as many
resources as possible need to be released early. release_state() is a
subset of the destroy() callback. When the destroy() is called
eventually it will free the entire state of the TA regardless if
release_state() has been called before or not. This allows freeing
resources while there are still open sessions to the TA.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>