LCOV - code coverage report
Current view: top level - zephyr/sys - reboot.h Coverage Total Hit
Test: new.info Lines: 50.0 % 4 2
Test Date: 2025-09-05 20:47:19

            Line data    Source code
       1            1 : /*
       2              :  * Copyright (c) 2015 Wind River Systems, Inc.
       3              :  *
       4              :  * SPDX-License-Identifier: Apache-2.0
       5              :  */
       6              : 
       7              : /**
       8              :  * @file
       9              :  * @brief Common target reboot functionality
      10              :  *
      11              :  * @details See subsys/os/Kconfig and the reboot help for details.
      12              :  */
      13              : 
      14              : #ifndef ZEPHYR_INCLUDE_SYS_REBOOT_H_
      15              : #define ZEPHYR_INCLUDE_SYS_REBOOT_H_
      16              : 
      17              : #include <zephyr/toolchain.h>
      18              : 
      19              : #ifdef __cplusplus
      20              : extern "C" {
      21              : #endif
      22              : 
      23            0 : #define SYS_REBOOT_WARM 0
      24            0 : #define SYS_REBOOT_COLD 1
      25              : 
      26              : /**
      27              :  * @brief Reboot the system
      28              :  *
      29              :  * Reboot the system in the manner specified by @a type.  Not all architectures
      30              :  * or platforms support the various reboot types (SYS_REBOOT_COLD,
      31              :  * SYS_REBOOT_WARM).
      32              :  *
      33              :  * When successful, this routine does not return.
      34              :  */
      35            1 : FUNC_NORETURN void sys_reboot(int type);
      36              : 
      37              : #ifdef __cplusplus
      38              : }
      39              : #endif
      40              : 
      41              : #endif /* ZEPHYR_INCLUDE_SYS_REBOOT_H_ */
        

Generated by: LCOV version 2.0-1