MOS Source Code
Loading...
Searching...
No Matches
signal.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2#pragma once
3
6
9
10#define ERESTARTSYS 512
11
29
36long signal_send_to_thread(thread_t *target, signal_t signal);
37
44long signal_send_to_process(process_t *target, signal_t signal);
45
53
62void signal_exit_to_user_prepare_syscall(platform_regs_t *regs, reg_t syscall_nr, reg_t syscall_ret);
63
64typedef struct _sigreturn_data
65{
69
74void signal_on_returned(sigreturn_data_t *supplimentary_data);
75
80bool signal_has_pending(void);
81
long signal_send_to_process(process_t *target, signal_t signal)
Send a signal to a process, an arbitrary thread will be chosen to receive the signal.
Definition signal.c:126
slab_t * sigpending_slab
Definition signal.c:50
void signal_exit_to_user_prepare_syscall(platform_regs_t *regs, reg_t syscall_nr, reg_t syscall_ret)
Prepare to exit to userspace after a syscall.
Definition signal.c:261
void signal_on_returned(sigreturn_data_t *supplimentary_data)
Return from a signal handler.
Definition signal.c:295
long signal_send_to_thread(thread_t *target, signal_t signal)
Send a signal to a thread.
Definition signal.c:92
bool signal_has_pending(void)
Return true if there's a pending signal.
Definition signal.c:301
void signal_exit_to_user_prepare(platform_regs_t *regs)
Prepare to exit to userspace.
Definition signal.c:245
struct _sigreturn_data sigreturn_data_t
Definition platform.h:263
int signal_t
Definition signal_types.h:9
A pending signal.
Definition signal.h:24
signal_t signal
Definition signal.h:26
bool was_masked
Definition signal.h:67
signal_t signal
Definition signal.h:66
Definition slab.h:45
uintn reg_t
Definition types.h:51