zephyr/doc/services
Glenn Andrews 94084e5aba Lib: SMF: Add return code to signal event propagation
See Discussion https://github.com/zephyrproject-rtos/zephyr/discussions/83659
for information about the purpose of this change.

Modifies run actions of hierarchical state machines
to return a value indicating if the event was handled
by the run action or should be propagated up to the
parent run action. Flat state machines are not affected,
and their run action returns void.

smf_set_handled() has been removed and replaced by
this return value. smf_set_state() will not propagate
events regardless of the return value as the transition
is considered to have occurred.

Documentation, tests, samples, has been updated.
USB-C and hawkBit use SMF and have been updated to use
the new return codes.

Signed-off-by: Glenn Andrews <glenn.andrews.42@gmail.com>
2025-06-17 16:04:04 +02:00
..
binary_descriptors
crypto
debugging
device_mgmt
dsp
file_system
input
ipc
llext
logging
mem_mgmt
modbus
modem
net_buf
pm
portability
profiling
resource_management
retention
rtio
sensing
serialization
shell
smf Lib: SMF: Add return code to signal event propagation 2025-06-17 16:04:04 +02:00
storage
task_wdt
tfm
tracing
virtualization
zbus
console.rst
formatted_output.rst
index.rst
misc.rst
notify.rst
poweroff.rst