zephyr/subsys/shell
Jakub Rzeszutko b0a0febe58 shell: fix unsafe API calls and add configurable autoflush behavior
Fixes an issue where the shell API could block indefinitely when called
from threads other than the shell's processing thread, especially when
the transport (e.g. USB CDC ACM) was unavailable or inactive.

Replaced `k_mutex_lock` calls with an indefinite timeout (`K_FOREVER`)
by using a fixed timeout (`K_MSEC(SHELL_TX_MTX_TIMEOUT_MS)`) in shell
API functions to prevent indefinite blocking.

Link: https://github.com/zephyrproject-rtos/zephyr/issues/84274

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@verkada.com>
2025-01-23 13:45:20 +01:00
..
backends shell: backends: shell_websocket remove deadcode 2025-01-16 14:51:10 +01:00
modules shell: modules: kernel_service: deprecate log_level 2025-01-17 09:08:26 +01:00
CMakeLists.txt shell: Allow custom shell log backend implementation 2024-10-17 10:48:25 -04:00
Kconfig shell: add Kconfig option for configurable autoflush behavior 2025-01-23 13:45:20 +01:00
Kconfig.template.shell_log_queue_size
Kconfig.template.shell_log_queue_timeout
shell.c shell: fix unsafe API calls and add configurable autoflush behavior 2025-01-23 13:45:20 +01:00
shell_cmds.c shell: Added assert 2024-10-16 10:00:17 +02:00
shell_fprintf.c
shell_help.c shell: shell_help: fix width for subcommands help text 2024-08-27 12:44:46 +02:00
shell_help.h
shell_history.c
shell_log_backend.c shell: shell_log_backend: Allow printing the thread ID or name 2025-01-16 22:36:50 +01:00
shell_ops.c shell: add generic RX buffer flush function 2024-10-09 13:48:41 +02:00
shell_ops.h shell: add generic RX buffer flush function 2024-10-09 13:48:41 +02:00
shell_utils.c shell: utils: omit NULL initialization of endptr 2024-12-13 11:35:28 +01:00
shell_utils.h
shell_vt100.h
shell_wildcard.c
shell_wildcard.h