How to send a signal from inside the kernel?
Joseph Koshy
joseph.koshy at gmail.com
Thu Mar 17 17:39:42 PST 2005
> Here are the headers needed in case someone reads this thread:
>
> #include <unistd.h> /*needed only for NULL, can be removed*/
> #include <sys/types.h>
> #include <sys/param.h>
> #include <sys/lock.h>
> #include <sys/mutex.h>
> #include <sys/proc.h>
According to the manual page for psignal(9) in -current, you
only need <sys/types.h> and <sys/signalvar.h>.
You need to hold the PROC lock for the target process before
invoking psignal().
--
FreeBSD Volunteer, http://people.freebsd.org/~jkoshy
More information about the freebsd-hackers
mailing list