Files
nuttx/include
George Poulios a2a689fee0 drivers/misc/optee: Fix GP API compatibility
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>
2025-05-13 10:14:01 +08:00
..
2024-12-15 17:53:48 -03:00
2025-04-08 22:53:10 +08:00
2024-10-23 09:42:57 +08:00
2025-04-02 12:01:46 +08:00
2024-10-11 00:37:27 +08:00
2024-11-26 19:25:24 +08:00
2024-12-26 13:25:19 +08:00
2025-05-08 16:00:05 +08:00
2024-12-20 11:46:14 -03:00