:orphan: .. title:: CONFIG_ERRNO_IN_TLS .. kconfig:: CONFIG_ERRNO_IN_TLS CONFIG_ERRNO_IN_TLS ################### *Store errno in thread local storage (TLS)* Type: ``bool`` Help ==== .. code-block:: none Use thread local storage to store errno instead of storing it in the kernel thread struct. This avoids a syscall if userspace is enabled. Direct dependencies =================== \ :kconfig:`ERRNO ` && \ :kconfig:`THREAD_LOCAL_STORAGE ` *(Includes any dependencies from ifs and menus.)* Default ======= - y Kconfig definition ================== At ``/Kconfig:199`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:40`` Menu path: (Top) → General Kernel Options → Enable errno support .. code-block:: kconfig config ERRNO_IN_TLS bool "Store errno in thread local storage (TLS)" default y depends on ERRNO && THREAD_LOCAL_STORAGE help Use thread local storage to store errno instead of storing it in the kernel thread struct. This avoids a syscall if userspace is enabled. *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*