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
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 during48 * 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 */
51struct tee_context {56struct 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
59struct tee_param_memref {65struct 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