DCMD_PROC_SIGNAL

Drop a signal on the process that's associated with the file descriptor. This is a way for a debugger to artificially generate signals as if they came from the system.

#include <sys/procfs.h>

#define DCMD_PROC_SIGNAL   __DIOT(_DCMD_PROC, __PROC_SUBCMD_PROCFS + 4, procfs_signal)

The arguments to devctl() are:

Argument Value
filedes A file descriptor for the process.
dcmd DCMD_PROC_SIGNAL
dev_data_ptr A pointer to a procfs_signal structure
n_bytes sizeof(procfs_signal)
dev_info_ptr NULL

The argument is a pointer to a procfs_signal structure that specifies the signal to send. For example:

procfs_signal   signal;

signal.tid = 0;
signal.signo = SIGCONT;
signal.code = 0;
signal.value = 0;

devctl( fd, DCMD_PROC_SIGNAL, &signal, sizeof signal, NULL);