108916fd4SIlya Leoshkevich /* 208916fd4SIlya Leoshkevich * Signal-related declarations. 308916fd4SIlya Leoshkevich * 408916fd4SIlya Leoshkevich * SPDX-License-Identifier: GPL-2.0-or-later 508916fd4SIlya Leoshkevich */ 608916fd4SIlya Leoshkevich #ifndef USER_SIGNAL_H 708916fd4SIlya Leoshkevich #define USER_SIGNAL_H 808916fd4SIlya Leoshkevich 908916fd4SIlya Leoshkevich #ifndef CONFIG_USER_ONLY 1008916fd4SIlya Leoshkevich #error Cannot include this header from system emulation 1108916fd4SIlya Leoshkevich #endif 1208916fd4SIlya Leoshkevich 1308916fd4SIlya Leoshkevich /** 1408916fd4SIlya Leoshkevich * target_to_host_signal: 1508916fd4SIlya Leoshkevich * @sig: target signal. 1608916fd4SIlya Leoshkevich * 1708916fd4SIlya Leoshkevich * On success, return the host signal between 0 (inclusive) and NSIG 1808916fd4SIlya Leoshkevich * (exclusive) corresponding to the target signal @sig. Return any other value 1908916fd4SIlya Leoshkevich * on failure. 2008916fd4SIlya Leoshkevich */ 2108916fd4SIlya Leoshkevich int target_to_host_signal(int sig); 2208916fd4SIlya Leoshkevich 23*2b3ccf5fSIlya Leoshkevich extern int host_interrupt_signal; 24*2b3ccf5fSIlya Leoshkevich 2508916fd4SIlya Leoshkevich #endif 26