History

tee: add supp_nowait flag in tee_context struct

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.

Sumit Garg committed 7 years ago

Commit 42bf4151 parent 49a57853 files · +28 −1Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/tee_drv.h+6−0
@@ -47,6 +47,11 @@ struct tee_shm_pool; · 46 unmodified lines
4747 * @releasing: flag that indicates if context is being released right now.
4848 * It is needed to break circular dependency on context during
4949 * 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.
5055 */
5156 struct tee_context {
5257 struct tee_device *teedev;
@@ -54,6 +59,7 @@ struct tee_context { · 1 unmodified line
5459 void *data;
5560 struct kref refcount;
5661 bool releasing;
62+ bool supp_nowait;
5763 };
5864
5965 struct tee_param_memref {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t