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

Max length of a thread name

Type: int

Help

Thread names get stored in the k_thread struct. Indicate the max name length, including the terminating NULL byte. Reduce this value to conserve memory.

Direct dependencies

THREAD_NAME

(Includes any dependencies from if’s and menus.)

Defaults

Kconfig definition

At kernel/Kconfig:365

Included via Kconfig:10Kconfig.zephyr:31

Menu path: (top menu) → General Kernel Options → Kernel Debugging and Metrics

config THREAD_MAX_NAME_LEN
    int
    prompt "Max length of a thread name" if THREAD_NAME
    range 8 128 if THREAD_NAME
    default 32 if THREAD_NAME
    depends on THREAD_NAME
    help
      Thread names get stored in the k_thread struct. Indicate the max
      name length, including the terminating NULL byte. Reduce this value
      to conserve memory.

(Definitions include propagated dependencies, including from if’s and menus.)