DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

psignal(D3)


psignal -- send signal to a process

Synopsis (Not in current DDI version)

   #include <sys/signal.h>
   #include <sys/proc.h>
   #include <sys/ddi.h>
   

void psignal(proc_t *p, int sig);

Description

psignal is called by drivers to send a signal to a single process. If the process being sent the signal has called sleep(D3) to wait at a priority numerically higher than PZERO, psignal makes the process executable.

Arguments


p
Pointer to the process being signaled.

sig
Signal to send.

Return values

None

Usage

Valid signals are listed in signals(D5).

PZERO is defined in sys/param.h.

A pointer to the currently running process can be obtained by calling drv_getparm(D3).

STREAMS drivers and modules should not call psignal. To generate a signal, they must send M_SIG or M_PCSIG messages.

Context and synchronization

Interrupt, user, or blockable context.

Hardware applicability

All

Version applicability

ddi: 1, 2, 4

Differences between versions

SVR4.2 MP and UnixWare 2.0 do not support psignal, even though they otherwise support ddi versions 1, 2, and 4. proc_signal(D3) replaces psignal.

References

drv_getparm(D3), proc_signal(D3), signals(D5)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005