master
h 25 lines 524 Bytes
Raw
1 /*
2 * Signal-related declarations.
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 #ifndef USER_SIGNAL_H
7 #define USER_SIGNAL_H
8
9 #ifndef CONFIG_USER_ONLY
10 #error Cannot include this header from system emulation
11 #endif
12
13 /**
14 * target_to_host_signal:
15 * @sig: target signal.
16 *
17 * On success, return the host signal between 0 (inclusive) and NSIG
18 * (exclusive) corresponding to the target signal @sig. Return any other value
19 * on failure.
20 */
21 int target_to_host_signal(int sig);
22
23 extern int host_interrupt_signal;
24
25 #endif