nuttx/Documentation
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
..
_extensions Documentation: port warnings_filter Sphinx extension from Zephyr 2023-11-28 09:18:29 -08:00
_static
_templates
applications style: fix typos 2025-04-30 13:45:46 +08:00
components style: fix typos 2025-04-30 13:45:46 +08:00
contributing style: fix typos 2025-04-30 13:45:46 +08:00
debugging style: fix typos 2025-04-30 13:45:46 +08:00
faq DOC: Add how to get application on NSH 2024-06-06 02:39:56 +08:00
guides drivers/misc/optee: Fix GP API compatibility 2025-05-13 10:14:01 +08:00
implementation style: fix typos 2025-04-30 13:45:46 +08:00
introduction style: fix typos 2025-04-30 13:45:46 +08:00
logos style: fix typos 2025-04-30 13:45:46 +08:00
platforms Documentation/xtensa: Add SDM docs for esp32[-|-s2|-s3] 2025-05-09 19:20:47 +08:00
quickstart doc: update GDB python plugin path 2025-02-18 11:16:17 -03:00
reference style: fix typos 2025-04-30 13:45:46 +08:00
ReleaseNotes style: fix typos 2025-04-30 13:45:46 +08:00
.gitignore docs/tags: Introduce tagging feature to the documentation. 2025-04-29 09:18:25 +02:00
conf.py docs/tags: Introduce tagging feature to the documentation. 2025-04-29 09:18:25 +02:00
glossary.rst
index.rst docs/tags: Introduce tagging feature to the documentation. 2025-04-29 09:18:25 +02:00
known-warnings.txt fs: Add VFS docs 2024-02-20 18:28:09 -08:00
legacy_README.md style: fix typos 2025-04-30 13:45:46 +08:00
make.bat
Makefile docs/tags: Introduce tagging feature to the documentation. 2025-04-29 09:18:25 +02:00
Pipfile docs/tags: Introduce tagging feature to the documentation. 2025-04-29 09:18:25 +02:00
Pipfile.lock Documentation: Bump docutils from 0.18.1 to 0.19 2024-11-24 17:52:30 +08:00
substitutions.rst