pidsig Kernel Service

Purpose

Sends a signal to a process.

Syntax

#include <sys/types.h> 
#include <sys/errno.h>

void pidsig ( pid,  sig)
pid_t pid;
int sig;

Parameters

Item Description
pid Specifies the process ID of the receiving process.
sig Specifies the signal to send.

Description

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.

Execution Environment

The pidsig kernel service can be called from either the process or interrupt environment.

Return Values

The pidsig service has no return values.