Skip to content

Commit 9028b24

Browse files
committed
tee: add sec_world_id to struct tee_shm
Adds sec_world_id to struct tee_shm which describes a shared memory object. sec_world_id can be used by a driver to store an id assigned by secure world. Reviewed-by: Sumit Garg <[email protected]> Signed-off-by: Jens Wiklander <[email protected]>
1 parent 7f565d0 commit 9028b24

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

include/linux/tee_drv.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,11 @@ int tee_session_calc_client_uuid(uuid_t *uuid, u32 connection_method,
197197
* @num_pages: number of locked pages
198198
* @dmabuf: dmabuf used to for exporting to user space
199199
* @flags: defined by TEE_SHM_* in tee_drv.h
200-
* @id: unique id of a shared memory object on this device
200+
* @id: unique id of a shared memory object on this device, shared
201+
* with user space
202+
* @sec_world_id:
203+
* secure world assigned id of this shared memory object, not
204+
* used by all drivers
201205
*
202206
* This pool is only supposed to be accessed directly from the TEE
203207
* subsystem and from drivers that implements their own shm pool manager.
@@ -213,6 +217,7 @@ struct tee_shm {
213217
struct dma_buf *dmabuf;
214218
u32 flags;
215219
int id;
220+
u64 sec_world_id;
216221
};
217222

218223
/**

0 commit comments

Comments
 (0)