[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

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

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.

Implementation Specifics

The pidsig kernel service is part of the Base Operating System (BOS) Runtime.

Related Information

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.


[ Previous | Next | Contents | Home | Search ]