The latest development version of this page may be more current than this released 2.7.5 version.

CONFIG_THREAD_LOCAL_STORAGE

Thread Local Storage (TLS)

Type: bool

Help

This option enables thread local storage (TLS) support in kernel.

Direct dependencies

ARCH_HAS_THREAD_LOCAL_STORAGE && TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Symbols selected by this symbol

Kconfig definition

At kernel/Kconfig:883

Included via Kconfig:8Kconfig.zephyr:40

Menu path: (Top) → General Kernel Options

config THREAD_LOCAL_STORAGE
    bool "Thread Local Storage (TLS)"
    select NEED_LIBC_MEM_PARTITION if CPU_CORTEX_M && USERSPACE
    depends on ARCH_HAS_THREAD_LOCAL_STORAGE && TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE
    help
      This option enables thread local storage (TLS) support in kernel.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)