kernel/usermode/index.html · kernel/usermode/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Kernel · Userspace

User Mode

Thread를 제한된 privilege로 실행하고 memory와 kernel operation을 hardware·system-call 경계로 보호합니다.

Official pathkernel/usermode/index.html
Source filekernel/usermode/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

User thread lifecycle, memory domain, kernel object, syscall과 MPU-specific stack·userspace 문서를 연결하는 hub입니다.

Privilege

supervisor · user

Memory

domain · MPU

Kernel

system call · object

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 7B599611DD64421AAC6786F236D68A8842CE49E1C31958A9E0FF812BA95FE35C
.. _usermode_api:

User Mode
#########

Zephyr offers the capability to run threads at a reduced privilege level
which we call user mode. The current implementation is designed for devices
with MPU hardware.

For details on creating threads that run in user mode, please see
:ref:`lifecycle_v2`.

.. toctree::
    :maxdepth: 2

    overview.rst
    memory_domain.rst
    kernelobjects.rst
    syscalls.rst
    mpu_stack_objects.rst
    mpu_userspace.rst

Part 3

한국어 전문 번역

Zephyr는 thread를 reduced privilege level에서 실행할 수 있으며 이를 user mode라고 부릅니다. 현재 구현은 MPU hardware가 있는 device를 대상으로 설계됐습니다.

User-mode thread 생성과 lifecycle은 thread lifecycle 문서를 참조합니다.

Userspace 문서 구성

  • Overview: supervisor·user mode의 protection model과 system call 경계
  • Memory Domains: user thread가 접근할 수 있는 memory partition 구성
  • Kernel Objects: opaque object 검증, permission과 reference lifetime
  • System Calls: user request validation과 kernel entry 구현
  • MPU Stack Objects: stack 배치·guard·permission 제약
  • MPU Userspace: architecture-specific MPU userspace 지원
User mode 보호 구성
Thread

reduced privilege execution

Memory domain

허용된 partition만 direct access

System call

kernel object operation의 검증된 entry

MPU

hardware access enforcement

Source

출처

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