History

tee: add tee_shm_register_{user,kernel}_buf()

Adds the two new functions tee_shm_register_user_buf() and tee_shm_register_kernel_buf() which should be used instead of the old tee_shm_register(). This avoids having the caller supplying the flags parameter which exposes a bit more than desired of the internals of the TEE subsystem.

Jens Wiklander committed 4 years ago

Commit 056d3fe1 parent 924e3224 files · +38 −2Browse files

Showing the changes to include (1 of 4 files). Show all

Unified · Split

include/linux/tee_drv.h+2−0
@@ -287,6 +287,8 @@ struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size); · 286 unmodified lines
287 */287 */
288struct tee_shm *tee_shm_register(struct tee_context *ctx, unsigned long addr,288struct tee_shm *tee_shm_register(struct tee_context *ctx, unsigned long addr,
289 size_t length, u32 flags);289 size_t length, u32 flags);
290struct tee_shm *tee_shm_register_kernel_buf(struct tee_context *ctx,
291 void *addr, size_t length);
290 292
291/**293/**
292 * tee_shm_is_registered() - Check if shared memory object in registered in TEE294 * tee_shm_is_registered() - Check if shared memory object in registered in TEE

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