psignal(D3) psignal(D3)
NAME
psignal - send signal to a process
SYNOPSIS
#include <sys/signal.h>
#include <sys/proc.h>
#include <sys/ddi.h>
void psignal(proc_t *p, int sig);
Arguments
p Pointer to the process being signaled.
sig Signal to send.
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.
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.
Level
Base or Interrupt.
Synchronization Constraints
Does not sleep.
REFERENCES
drv_getparm(D3), proc_signal(D3), signals(D5)
NOTICES
Copyright 1994 Novell, Inc. Page 1
psignal(D3) psignal(D3)
Portability
All processors
Applicability
ddi: 1, 2, 4
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.
Copyright 1994 Novell, Inc. Page 2