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.
Showing the changes to include (1 of 4 files). Show all
Unified · Split
| @@ -287,6 +287,8 @@ struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size); · 286 unmodified lines | |||
| 287 | */ | 287 | */ |
| 288 | struct tee_shm *tee_shm_register(struct tee_context *ctx, unsigned long addr, | 288 | struct tee_shm *tee_shm_register(struct tee_context *ctx, unsigned long addr, |
| 289 | size_t length, u32 flags); | 289 | size_t length, u32 flags); |
| 290 | struct 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 TEE | 294 | * tee_shm_is_registered() - Check if shared memory object in registered in TEE |