diff options
author | Puranjay Mohan <puranjay@kernel.org> | 2024-10-16 11:41:35 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-10-22 01:02:49 +0300 |
commit | 6280cf718db0c557b5fe44e2d2e8ad8e832696a7 (patch) | |
tree | 7622100363c4b50f66ed40ff4606e61ab46db016 /rust/kernel/workqueue.rs | |
parent | 8ca77b8f6223e92c9cf28ccbac54291d6e97dae1 (diff) | |
download | linux-6280cf718db0c557b5fe44e2d2e8ad8e832696a7.tar.xz |
bpf: Implement bpf_send_signal_task() kfunc
Implement bpf_send_signal_task kfunc that is similar to
bpf_send_signal_thread and bpf_send_signal helpers but can be used to
send signals to other threads and processes. It also supports sending a
cookie with the signal similar to sigqueue().
If the receiving process establishes a handler for the signal using the
SA_SIGINFO flag to sigaction(), then it can obtain this cookie via the
si_value field of the siginfo_t structure passed as the second argument
to the handler.
Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20241016084136.10305-2-puranjay@kernel.org
Diffstat (limited to 'rust/kernel/workqueue.rs')
0 files changed, 0 insertions, 0 deletions