zephyr/boards/native/native_sim/reboot_bottom.h
Adrian Friedli ffdc50c4bf boards: native_sim: add reboot for native_sim
Add a reboot implementation for the native_sim target which restarts
the current executable keeping the command line arguments after closing
all open file descriptors.

Signed-off-by: Adrian Friedli <adrian.friedli@husqvarnagroup.com>
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
Co-authored-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-04-29 17:54:26 +02:00

22 lines
393 B
C

/*
* Copyright (c) 2025 GARDENA GmbH
* Copyright (c) 2025 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef BOARDS_NATIVE_NATIVE_SIM_REBOOT_BOTTOM_H
#define BOARDS_NATIVE_NATIVE_SIM_REBOOT_BOTTOM_H
#ifdef __cplusplus
extern "C" {
#endif
void native_set_reboot_on_exit(void);
#ifdef __cplusplus
}
#endif
#endif /* BOARDS_NATIVE_NATIVE_SIM_REBOOT_BOTTOM_H */