mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
Previous implementation was not compatible with GlobalPlatform API in the following ways: - Registered mem IDs would begin from negatives when it should have been greater than or equal to 0 - Register IOCTL would return 0 on success, when it should have been returning a file descriptor. - Register IOCTL would expect the user-space client to specify TEE_SHM_* flags dictating its behaviour when in fact, libteec never specifies flags. This commit fixes all those issues. It uses nuttx/idr.h instead of a linked list, and it uses `file_allocate` to provide file descriptors for registered shared memory. Upon close(fd), the memory is de-registered and freed accordingly. It also updates the documentation accordingly. Signed-off-by: George Poulios <gpoulios@census-labs.com> |
||
|---|---|---|
| .. | ||
| addrenv.c | ||
| CMakeLists.txt | ||
| dev_ascii.c | ||
| dev_mem.c | ||
| dev_null.c | ||
| dev_zero.c | ||
| goldfish_pipe.c | ||
| Kconfig | ||
| lwl_console.c | ||
| Make.defs | ||
| mkrd.c | ||
| optee.c | ||
| optee.h | ||
| optee_msg.h | ||
| optee_smc.c | ||
| optee_smc.h | ||
| optee_socket.c | ||
| ramdisk.c | ||
| rpmsgblk.c | ||
| rpmsgblk.h | ||
| rpmsgblk_server.c | ||
| rpmsgdev.c | ||
| rpmsgdev.h | ||
| rpmsgdev_server.c | ||
| rwbuffer.c | ||