Skip to content

Commit c60f322

Browse files
committed
doc: posix: mark memory protection as supported
Mark _POSIX_MEMORY_PROTECTION as supported (i.e. a conformant application will link). Zephyr's mm API does not currently support modifying memory protection bits after pages have been mapped, so use of this function may result in undefined behaviour. Signed-off-by: Chris Friedt <[email protected]>
1 parent c6168cd commit c60f322

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

doc/services/portability/posix/conformance/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ POSIX System Interfaces
3737
:ref:`_POSIX_BARRIERS<posix_option_group_barriers>`, 200809L, :kconfig:option:`CONFIG_POSIX_BARRIERS`
3838
:ref:`_POSIX_CLOCK_SELECTION<posix_option_group_clock_selection>`, 200809L, :kconfig:option:`CONFIG_POSIX_CLOCK_SELECTION`
3939
:ref:`_POSIX_MAPPED_FILES<posix_option_group_mapped_files>`, 200809L, :kconfig:option:`CONFIG_POSIX_MAPPED_FILES`
40-
_POSIX_MEMORY_PROTECTION, -1, :ref:`†<posix_undefined_behaviour>`
40+
:ref:`_POSIX_MEMORY_PROTECTION<posix_option_group_memory_protection>`, 200809L, :kconfig:option:`CONFIG_POSIX_MEMORY_PROTECTION` :ref:`†<posix_undefined_behaviour>`
4141
:ref:`_POSIX_READER_WRITER_LOCKS<posix_option_reader_writer_locks>`, 200809L, :kconfig:option:`CONFIG_POSIX_READER_WRITER_LOCKS`
4242
:ref:`_POSIX_REALTIME_SIGNALS<posix_option_group_realtime_signals>`, -1, :kconfig:option:`CONFIG_POSIX_REALTIME_SIGNALS`
4343
:ref:`_POSIX_SEMAPHORES<posix_option_group_semaphores>`, 200809L, :kconfig:option:`CONFIG_POSIX_SEMAPHORES`

doc/services/portability/posix/option_groups/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,17 @@ This table lists service support status in Zephyr for `POSIX_FD_MGMT`:
572572
putc_unlocked(),
573573
putchar_unlocked(),
574574

575+
.. _posix_option_group_memory_protection:
576+
577+
POSIX_MEMORY_PROTECTION
578+
=======================
579+
580+
.. csv-table:: POSIX_MEMORY_PROTECTION
581+
:header: API, Supported
582+
:widths: 50,10
583+
584+
mprotect(), yes :ref:`†<posix_undefined_behaviour>`
585+
575586
.. _posix_option_group_multi_process:
576587

577588
POSIX_MULTI_PROCESS

0 commit comments

Comments
 (0)