diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2021-06-14 17:33:14 -0500 |
---|---|---|
committer | Jens Wiklander <jens.wiklander@linaro.org> | 2021-07-21 07:55:44 +0200 |
commit | dc7019b7d0e188d4093b34bd0747ed0d668c63bf (patch) | |
tree | 44777ddf94d890824f14531dcf6650a6e49afd9c /include/linux/tee_drv.h | |
parent | b5c10dd04b7418793517e3286cde5c04759a86de (diff) | |
download | lwn-dc7019b7d0e188d4093b34bd0747ed0d668c63bf.tar.gz lwn-dc7019b7d0e188d4093b34bd0747ed0d668c63bf.zip |
tee: add tee_shm_alloc_kernel_buf()
Adds a new function tee_shm_alloc_kernel_buf() to allocate shared memory
from a kernel driver. This function can later be made more lightweight
by unnecessary dma-buf export.
Cc: stable@vger.kernel.org
Reviewed-by: Tyler Hicks <tyhicks@linux.microsoft.com>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'include/linux/tee_drv.h')
-rw-r--r-- | include/linux/tee_drv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/tee_drv.h b/include/linux/tee_drv.h index 54269e47ac9a..8990f7628387 100644 --- a/include/linux/tee_drv.h +++ b/include/linux/tee_drv.h @@ -332,6 +332,7 @@ void *tee_get_drvdata(struct tee_device *teedev); * @returns a pointer to 'struct tee_shm' */ struct tee_shm *tee_shm_alloc(struct tee_context *ctx, size_t size, u32 flags); +struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size); /** * tee_shm_register() - Register shared memory buffer |