This flag indicates that requests in this context should not wait for tee-supplicant daemon to be started if not present and just return with an error code. It is needed for requests which should be non-blocking in nature like ones arising from TEE based kernel drivers or any in kernel api that uses TEE internal client interface.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -47,6 +47,11 @@ struct tee_shm_pool; · 46 unmodified lines | |||
| 47 | * @releasing: flag that indicates if context is being released right now. | 47 | * @releasing: flag that indicates if context is being released right now. |
| 48 | * It is needed to break circular dependency on context during | 48 | * It is needed to break circular dependency on context during |
| 49 | * shared memory release. | 49 | * shared memory release. |
| 50 | * @supp_nowait: flag that indicates that requests in this context should not | ||
| 51 | * wait for tee-supplicant daemon to be started if not present | ||
| 52 | * and just return with an error code. It is needed for requests | ||
| 53 | * that arises from TEE based kernel drivers that should be | ||
| 54 | * non-blocking in nature. | ||
| 50 | */ | 55 | */ |
| 51 | struct tee_context { | 56 | struct tee_context { |
| 52 | struct tee_device *teedev; | 57 | struct tee_device *teedev; |
| @@ -54,6 +59,7 @@ struct tee_context { · 1 unmodified line | |||
| 54 | void *data; | 59 | void *data; |
| 55 | struct kref refcount; | 60 | struct kref refcount; |
| 56 | bool releasing; | 61 | bool releasing; |
| 62 | bool supp_nowait; | ||
| 57 | }; | 63 | }; |
| 58 | 64 | ||
| 59 | struct tee_param_memref { | 65 | struct tee_param_memref { |