![]() |
MOS Source Code
|
#include "mos/tasks/signal.hpp"
#include "mos/platform/platform.hpp"
#include "mos/syslog/printk.hpp"
#include "mos/tasks/process.hpp"
#include "mos/tasks/schedule.hpp"
#include "mos/tasks/thread.hpp"
#include <errno.h>
#include <limits.h>
#include <mos/lib/structures/list.hpp>
#include <mos/lib/sync/spinlock.hpp>
#include <mos/tasks/signal_types.h>
#include <mos_stdlib.hpp>
#include <mos_string.hpp>
Go to the source code of this file.
Functions | |
static int | sigset_add (sigset_t *sigset, int sig) |
static int | sigset_del (sigset_t *sigset, int sig) |
static int | sigset_test (const sigset_t *sigset, int sig) |
static void | signal_do_coredump (signal_t signal) |
static void | signal_do_terminate (signal_t signal) |
static void | signal_do_ignore (signal_t signal) |
static bool | is_fatal_signal (signal_t signal) |
long | signal_send_to_thread (Thread *target, signal_t signal) |
Send a signal to a thread. | |
long | signal_send_to_process (Process *target, signal_t signal) |
Send a signal to a process, an arbitrary thread will be chosen to receive the signal. | |
static signal_t | signal_get_next_pending (void) |
static void | do_signal_exit_to_user_prepare (platform_regs_t *regs, signal_t next_signal, const sigaction_t *action) |
void | signal_exit_to_user_prepare (platform_regs_t *regs) |
Prepare to exit to userspace. | |
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. | |
void | signal_on_returned (sigreturn_data_t *data) |
Return from a signal handler. | |
bool | signal_has_pending (void) |
Return true if there's a pending signal. | |
Definition at line 19 of file signal.cpp.
Referenced by do_signal_exit_to_user_prepare().
Definition at line 29 of file signal.cpp.
Referenced by signal_on_returned().
Definition at line 39 of file signal.cpp.
Referenced by do_signal_exit_to_user_prepare(), signal_get_next_pending(), and signal_has_pending().
Definition at line 48 of file signal.cpp.
Referenced by do_signal_exit_to_user_prepare().
Definition at line 54 of file signal.cpp.
Referenced by do_signal_exit_to_user_prepare(), and signal_get_next_pending().
Definition at line 63 of file signal.cpp.
Referenced by do_signal_exit_to_user_prepare().
Definition at line 68 of file signal.cpp.
Referenced by do_signal_exit_to_user_prepare(), signal_get_next_pending(), and signal_send_to_thread().
Definition at line 168 of file signal.cpp.
Referenced by signal_exit_to_user_prepare(), and signal_exit_to_user_prepare_syscall().
|
static |
Definition at line 195 of file signal.cpp.
Referenced by signal_exit_to_user_prepare(), and signal_exit_to_user_prepare_syscall().