Home
last modified time | relevance | path

Searched hist:bae0f170e3217a9322f4c36879a65bc12f50e96a (Results 1 – 2 of 2) sorted by relevance

/optee_os/core/include/mm/
H A Dfile.hbae0f170e3217a9322f4c36879a65bc12f50e96a Thu May 23 15:41:48 UTC 2019 Jens Wiklander <jens.wiklander@linaro.org> core: file: refactor interface to be thread safe

Adds file_lock() and file_unlock() to change the lock state of a file.

file_new() is removed, the only way to create a file is with
file_get_by_tag() which will return an empty newly allocated file if
none can be found.

file_add_slice() is added to add slices to a file, one by one.

With this can multiple threads try to load a TA at once, the first one
taking the lock will add all the slices to the file.

The code in user_ta.c and elf_load.c using the <file.h> interface can
be optimized to allow more operations in parallel.

Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
/optee_os/core/mm/
H A Dfile.cbae0f170e3217a9322f4c36879a65bc12f50e96a Thu May 23 15:41:48 UTC 2019 Jens Wiklander <jens.wiklander@linaro.org> core: file: refactor interface to be thread safe

Adds file_lock() and file_unlock() to change the lock state of a file.

file_new() is removed, the only way to create a file is with
file_get_by_tag() which will return an empty newly allocated file if
none can be found.

file_add_slice() is added to add slices to a file, one by one.

With this can multiple threads try to load a TA at once, the first one
taking the lock will add all the slices to the file.

The code in user_ta.c and elf_load.c using the <file.h> interface can
be optimized to allow more operations in parallel.

Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>