#include <sys/types.h> #include <sys/errno.h>
void pidsig (pid, sig) pid_t pid; int sig;
pid | Specifies the process ID of the receiving process. |
sig | Specifies the signal to send. |
The pidsig kernel service sends a signal to a process. The pid parameter must be the process identifier of the process to be sent the signal. The sig parameter specifies the signal to send. See the sigaction subroutine for a list of the valid signals.
Device drivers can get the value for the pid parameter by using the getpid kernel service. This value is the process identifier for the currently executing process.
The pidsig kernel service can be called from an interrupt handler execution environment if the process ID is known.
The pidsig kernel service can be called from either the process or interrupt environment.
The pidsig service has no return values.
The pidsig kernel service is part of the Base Operating System (BOS) Runtime.
The getpid kernel service, pgsignal kernel service.
The sigaction subroutine.
Process and Exception Management Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.