services/portability/posix/aep/index.html · services/portability/posix/aep/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Portability · POSIX

POSIX Application Environment Profiles

Embedded realtime system의 resource 범위에 맞춰 필수 POSIX interface 위에 기능을 단계적으로 추가합니다.

Official pathservices/portability/posix/aep/index.html
Source fileservices/portability/posix/aep/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

Inactive POSIX.13-2003 AEP를 현재 POSIX-1 용어로 해석하고 PSE51·52·53의 39개 profile 항목을 비교합니다.

PSE51

Minimal realtime

PSE52

Controller

PSE53

Dedicated

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 DD570F1B4708447268C0B139C7B410DD87A2C5817DDA1EA5A740A54BE640719E
.. _posix_aep:

POSIX Application Environment Profiles (AEP)
############################################

Although inactive, `IEEE 1003.13-2003`_ defined a number of AEP that inspired the modern
subprofiling options of `IEEE 1003.1-2017`_. The single-purpose realtime system profiles
are listed below, for reference, in terms that agree with the current POSIX-1 standard. PSE54
is not considered at this time.

System Interfaces
=================

The required POSIX :ref:`System Interfaces<posix_system_interfaces_required>` are supported for
each Application Environment Profile.

..  figure:: si.svg
    :align: center
    :scale: 150%
    :alt: Required System Interfaces

    System Interfaces

.. _posix_aep_pse51:

Minimal Realtime System Profile (PSE51)
=======================================

The *Minimal Realtime System Profile* (PSE51) includes all of the
:ref:`System Interfaces<posix_system_interfaces_required>` along with several additional features.

..  figure:: aep-pse51.svg
    :align: center
    :scale: 150%
    :alt: Minimal Realtime System Profile (PSE51)

    Minimal Realtime System Profile (PSE51)

.. Conforming implementations shall define _POSIX_AEP_REALTIME_MINIMAL to the value 200312L

.. csv-table:: PSE51 System Interfaces
   :header: Symbol, Support, Remarks
   :widths: 50, 10, 50

    _POSIX_AEP_REALTIME_MINIMAL, -1, :kconfig:option:`CONFIG_POSIX_AEP_REALTIME_MINIMAL`

.. csv-table:: PSE51 Option Groups
   :header: Symbol, Support, Remarks
   :widths: 50, 10, 50

    :ref:`POSIX_C_LANG_JUMP <posix_option_group_c_lang_jump>`, yes,
    :ref:`POSIX_C_LANG_SUPPORT <posix_option_group_c_lang_support>`, yes,
    :ref:`POSIX_DEVICE_IO <posix_option_group_device_io>`,, :kconfig:option:`CONFIG_POSIX_DEVICE_IO`
    :ref:`POSIX_SIGNALS <posix_option_group_signals>`,, :kconfig:option:`CONFIG_POSIX_SIGNALS`
    :ref:`POSIX_SINGLE_PROCESS <posix_option_group_single_process>`, yes, :kconfig:option:`CONFIG_POSIX_SINGLE_PROCESS`
    :ref:`XSI_THREADS_EXT <posix_option_group_xsi_threads_ext>`, yes, :kconfig:option:`CONFIG_XSI_THREADS_EXT`

.. csv-table:: PSE51 Option Requirements
   :header: Symbol, Support, Remarks
   :widths: 50, 10, 50

    :ref:`_POSIX_FSYNC <posix_option_fsync>`, 200809L, :kconfig:option:`CONFIG_POSIX_FSYNC`
    :ref:`_POSIX_MEMLOCK <posix_option_memlock>`, 200809L, :kconfig:option:`CONFIG_POSIX_MEMLOCK` :ref:`†<posix_undefined_behaviour>`
    :ref:`_POSIX_MEMLOCK_RANGE <posix_option_memlock_range>`, 200809L, :kconfig:option:`CONFIG_POSIX_MEMLOCK_RANGE`
    :ref:`_POSIX_MONOTONIC_CLOCK <posix_option_monotonic_clock>`, 200809L, :kconfig:option:`CONFIG_POSIX_MONOTONIC_CLOCK`
    :ref:`_POSIX_SHARED_MEMORY_OBJECTS <posix_shared_memory_objects>`, 200809L, :kconfig:option:`CONFIG_POSIX_SHARED_MEMORY_OBJECTS`
    :ref:`_POSIX_SYNCHRONIZED_IO <posix_option_synchronized_io>`, -1, :kconfig:option:`CONFIG_POSIX_SYNCHRONIZED_IO`
    :ref:`_POSIX_THREAD_ATTR_STACKADDR<posix_option_thread_attr_stackaddr>`, 200809L, :kconfig:option:`CONFIG_POSIX_THREAD_ATTR_STACKADDR`
    :ref:`_POSIX_THREAD_ATTR_STACKSIZE<posix_option_thread_attr_stacksize>`, 200809L, :kconfig:option:`CONFIG_POSIX_THREAD_ATTR_STACKSIZE`
    :ref:`_POSIX_THREAD_CPUTIME <posix_option_thread_cputime>`, 200809L, :kconfig:option:`CONFIG_POSIX_CPUTIME`
    :ref:`_POSIX_THREAD_PRIO_INHERIT <posix_option_thread_prio_inherit>`, 200809L, :kconfig:option:`CONFIG_POSIX_THREAD_PRIO_INHERIT`
    :ref:`_POSIX_THREAD_PRIO_PROTECT <posix_option_thread_prio_protect>`, -1, :kconfig:option:`CONFIG_POSIX_THREAD_PRIO_PROTECT`
    :ref:`_POSIX_THREAD_PRIORITY_SCHEDULING <posix_option_thread_priority_scheduling>`, 200809L, :kconfig:option:`CONFIG_POSIX_THREAD_PRIORITY_SCHEDULING`
    _POSIX_THREAD_SPORADIC_SERVER, -1,

.. _posix_aep_pse52:

Realtime Controller System Profile (PSE52)
==========================================

The *Realtime Controller System Profile* (PSE52) includes all features from PSE51 and the
:ref:`System Interfaces<posix_system_interfaces_required>`.

..  figure:: aep-pse52.svg
    :align: center
    :scale: 150%
    :alt: Realtime Controller System Profile (PSE52)

    Realtime Controller System Profile (PSE52)

.. Conforming implementations shall define _POSIX_AEP_REALTIME_CONTROLLER to the value 200312L

.. csv-table:: PSE52 System Interfaces
   :header: Symbol, Support, Remarks
   :widths: 50, 10, 50

    _POSIX_AEP_REALTIME_CONTROLLER, -1, :kconfig:option:`CONFIG_POSIX_AEP_REALTIME_CONTROLLER`

.. csv-table:: PSE52 Option Groups
   :header: Symbol, Support, Remarks
   :widths: 50, 10, 50

    :ref:`POSIX_C_LANG_MATH <posix_option_group_c_lang_math>`, yes,
    :ref:`POSIX_FD_MGMT <posix_option_group_fd_mgmt>`,, :kconfig:option:`CONFIG_POSIX_FD_MGMT`
    :ref:`POSIX_FILE_SYSTEM <posix_option_group_file_system>`,, :kconfig:option:`CONFIG_POSIX_FILE_SYSTEM`

.. csv-table:: PSE52 Option Requirements
   :header: Symbol, Support, Remarks
   :widths: 50, 10, 50

    :ref:`_POSIX_MESSAGE_PASSING <posix_option_message_passing>`, 200809L, :kconfig:option:`CONFIG_POSIX_MESSAGE_PASSING`
    _POSIX_TRACE, -1,
    _POSIX_TRACE_EVENT_FILTER, -1,
    _POSIX_TRACE_LOG, -1,

.. _posix_aep_pse53:

Dedicated Realtime System Profile (PSE53)
=========================================

The *Dedicated Realtime System Profile* (PSE53) includes all features from PSE52, PSE51, and the
:ref:`System Interfaces<posix_system_interfaces_required>`.

..  figure:: aep-pse53.svg
    :align: center
    :scale: 150%
    :alt: Dedicated Realtime System Profile (PSE53)

    Dedicated Realtime System Profile (PSE53)

.. Conforming implementations shall define _POSIX_AEP_REALTIME_DEDICATED to the value 200312L

.. csv-table:: PSE53 System Interfaces
   :header: Symbol, Support, Remarks
   :widths: 50, 10, 50

    _POSIX_AEP_REALTIME_DEDICATED, -1, :kconfig:option:`CONFIG_POSIX_AEP_REALTIME_DEDICATED`

.. csv-table:: PSE53 Option Groups
   :header: Symbol, Support, Remarks
   :widths: 50, 10, 50

    :ref:`POSIX_MULTI_PROCESS<posix_option_group_multi_process>`,, :kconfig:option:`CONFIG_POSIX_MULTI_PROCESS`:ref:`†<posix_undefined_behaviour>`
    :ref:`POSIX_NETWORKING <posix_option_group_networking>`, yes, :kconfig:option:`CONFIG_POSIX_NETWORKING`
    :ref:`POSIX_PIPE <posix_option_group_pipe>`,,
    :ref:`POSIX_SIGNAL_JUMP <posix_option_group_signal_jump>`,,

.. csv-table:: PSE53 Option Requirements
   :header: Symbol, Support, Remarks
   :widths: 50, 10, 50

    :ref:`_POSIX_CPUTIME <posix_option_cputime>`, 200809L, :kconfig:option:`CONFIG_POSIX_CPUTIME`
    _POSIX_PRIORITIZED_IO, -1,
    :ref:`_POSIX_PRIORITY_SCHEDULING <posix_option_priority_scheduling>`, -1,
    :ref:`_POSIX_RAW_SOCKETS <posix_option_raw_sockets>`, 200809L, :kconfig:option:`CONFIG_POSIX_RAW_SOCKETS`
    _POSIX_SPAWN, -1, :ref:`†<posix_undefined_behaviour>`
    _POSIX_SPORADIC_SERVER, -1, :ref:`†<posix_undefined_behaviour>`

.. _IEEE 1003.1-2017: https://standards.ieee.org/ieee/1003.1/7101/
.. _IEEE 1003.13-2003: https://standards.ieee.org/ieee/1003.13/3322/

Part 3

한국어 전문 번역

현재는 inactive 표준이지만 IEEE 1003.13-2003은 IEEE 1003.1-2017의 현대적인 subprofiling option에 영향을 준 여러 Application Environment Profile(AEP)을 정의했습니다. 아래 single-purpose realtime profile은 현재 POSIX-1 용어에 맞춰 참고용으로 정리하며 PSE54는 여기서 다루지 않습니다.

System Interfaces

필수 POSIX System Interface는 각 Application Environment Profile에서 지원됩니다.

모든 AEP의 기반이 되는 필수 POSIX System Interfaces
System Interfaces

Minimal Realtime System Profile (PSE51)

Minimal Realtime System Profile(PSE51)은 모든 필수 System Interface에 몇 가지 realtime 기능을 더합니다. Conforming implementation은 _POSIX_AEP_REALTIME_MINIMAL을 200312L로 정의해야 하지만 Zephyr 표의 현재 support 값은 아래와 같습니다.

System Interfaces 위에 PSE51 기능을 추가한 profile
Minimal Realtime System Profile (PSE51)
PSE51 System Interfaces
심볼지원비고
_POSIX_AEP_REALTIME_MINIMAL-1CONFIG_POSIX_AEP_REALTIME_MINIMAL
PSE51 Option Groups
심볼지원비고
POSIX_C_LANG_JUMPyes
POSIX_C_LANG_SUPPORTyes
POSIX_DEVICE_IOCONFIG_POSIX_DEVICE_IO
POSIX_SIGNALSCONFIG_POSIX_SIGNALS
POSIX_SINGLE_PROCESSyesCONFIG_POSIX_SINGLE_PROCESS
XSI_THREADS_EXTyesCONFIG_XSI_THREADS_EXT
PSE51 Option Requirements
심볼지원비고
_POSIX_FSYNC200809LCONFIG_POSIX_FSYNC
_POSIX_MEMLOCK200809LCONFIG_POSIX_MEMLOCK · †
_POSIX_MEMLOCK_RANGE200809LCONFIG_POSIX_MEMLOCK_RANGE
_POSIX_MONOTONIC_CLOCK200809LCONFIG_POSIX_MONOTONIC_CLOCK
_POSIX_SHARED_MEMORY_OBJECTS200809LCONFIG_POSIX_SHARED_MEMORY_OBJECTS
_POSIX_SYNCHRONIZED_IO-1CONFIG_POSIX_SYNCHRONIZED_IO
_POSIX_THREAD_ATTR_STACKADDR200809LCONFIG_POSIX_THREAD_ATTR_STACKADDR
_POSIX_THREAD_ATTR_STACKSIZE200809LCONFIG_POSIX_THREAD_ATTR_STACKSIZE
_POSIX_THREAD_CPUTIME200809LCONFIG_POSIX_CPUTIME
_POSIX_THREAD_PRIO_INHERIT200809LCONFIG_POSIX_THREAD_PRIO_INHERIT
_POSIX_THREAD_PRIO_PROTECT-1CONFIG_POSIX_THREAD_PRIO_PROTECT
_POSIX_THREAD_PRIORITY_SCHEDULING200809LCONFIG_POSIX_THREAD_PRIORITY_SCHEDULING
_POSIX_THREAD_SPORADIC_SERVER-1

Realtime Controller System Profile (PSE52)

Realtime Controller System Profile(PSE52)은 PSE51의 모든 기능과 필수 System Interface를 포함하고 math, file descriptor와 filesystem 기능을 추가합니다. Conforming implementation의 profile symbol 목표 값은 200312L입니다.

PSE51 위에 controller 기능을 추가한 PSE52 profile
Realtime Controller System Profile (PSE52)
PSE52 System Interfaces
심볼지원비고
_POSIX_AEP_REALTIME_CONTROLLER-1CONFIG_POSIX_AEP_REALTIME_CONTROLLER
PSE52 Option Groups
심볼지원비고
POSIX_C_LANG_MATHyes
POSIX_FD_MGMTCONFIG_POSIX_FD_MGMT
POSIX_FILE_SYSTEMCONFIG_POSIX_FILE_SYSTEM
PSE52 Option Requirements
심볼지원비고
_POSIX_MESSAGE_PASSING200809LCONFIG_POSIX_MESSAGE_PASSING
_POSIX_TRACE-1
_POSIX_TRACE_EVENT_FILTER-1
_POSIX_TRACE_LOG-1

Dedicated Realtime System Profile (PSE53)

Dedicated Realtime System Profile(PSE53)은 PSE52와 PSE51의 모든 기능, 그리고 필수 System Interface를 포함합니다. Networking과 일부 multi-process·pipe·signal-jump 범위를 더하며 profile symbol의 표준 목표 값은 200312L입니다.

PSE52 위에 dedicated realtime 기능을 추가한 PSE53 profile
Dedicated Realtime System Profile (PSE53)
PSE53 System Interfaces
심볼지원비고
_POSIX_AEP_REALTIME_DEDICATED-1CONFIG_POSIX_AEP_REALTIME_DEDICATED
PSE53 Option Groups
심볼지원비고
POSIX_MULTI_PROCESSCONFIG_POSIX_MULTI_PROCESS · †
POSIX_NETWORKINGyesCONFIG_POSIX_NETWORKING
POSIX_PIPE
POSIX_SIGNAL_JUMP
PSE53 Option Requirements
심볼지원비고
_POSIX_CPUTIME200809LCONFIG_POSIX_CPUTIME
_POSIX_PRIORITIZED_IO-1
_POSIX_PRIORITY_SCHEDULING-1
_POSIX_RAW_SOCKETS200809LCONFIG_POSIX_RAW_SOCKETS
_POSIX_SPAWN-1†
_POSIX_SPORADIC_SERVER-1†

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.