:orphan: .. title:: CONFIG_OS_MGMT_TASKSTAT_THREAD_NAME_LEN .. kconfig:: CONFIG_OS_MGMT_TASKSTAT_THREAD_NAME_LEN CONFIG_OS_MGMT_TASKSTAT_THREAD_NAME_LEN ####################################### *Length of thread name to return in response* Type: ``int`` Help ==== .. code-block:: none The length, including terminating 0, of the string that is sent in response to taskstat command, as a thread name. When THREAD_NAME is enabled then this defaults to THREAD_MAX_NAME_LEN. When THREAD_NAME is disabled the name is generated from thread priority, signed integer, and this number regulates how many digits will be used; in such case this value should also take into account possible '-' sign. Direct dependencies =================== \ :kconfig:`OS_MGMT_TASKSTAT ` && \ :kconfig:`MCUMGR_CMD_OS_MGMT ` && \ :kconfig:`MCUMGR ` *(Includes any dependencies from ifs and menus.)* Defaults ======== - \ :kconfig:`THREAD_MAX_NAME_LEN ` if \ :kconfig:`THREAD_NAME ` - 5 if !\ :kconfig:`THREAD_NAME ` Kconfig definition ================== At ``/mgmt/mcumgr/Kconfig:274`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:44`` → ``/Kconfig:35`` → ``/mgmt/Kconfig:9`` Menu path: (Top) → Sub Systems and OS Services → Device Management → mcumgr Support → Command Handlers → Enable mcumgr handlers for OS management → Support for taskstat command .. code-block:: kconfig config OS_MGMT_TASKSTAT_THREAD_NAME_LEN int "Length of thread name to return in response" range 3 THREAD_MAX_NAME_LEN if THREAD_NAME range 3 6 if !THREAD_NAME default THREAD_MAX_NAME_LEN if THREAD_NAME default 5 if !THREAD_NAME depends on OS_MGMT_TASKSTAT && MCUMGR_CMD_OS_MGMT && MCUMGR help The length, including terminating 0, of the string that is sent in response to taskstat command, as a thread name. When THREAD_NAME is enabled then this defaults to THREAD_MAX_NAME_LEN. When THREAD_NAME is disabled the name is generated from thread priority, signed integer, and this number regulates how many digits will be used; in such case this value should also take into account possible '-' sign. *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*