lkml.org 
[lkml]   [2001]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectsend_sig_info help?

Guys,

This is my first attempt at writing at the kernel
level. I'm working on a device driver, and usually in
userspace, I use Kill() to send a signal to a PID I
know of.

At the kernel level, I don't know of any kill()
equivalents (are there any?), except send_sig_info().

Send_sig_info(int, struct siginfo *, struct
tasktstruct *)

I know the int is the PID from "Understanding the
Linux Kernel -Oreilly".

The problem I'm experiencing is that I'm not sure how
to find the pointer to taskstruct. From what I"ve
read, the pointer to taskstruct is a pointer to the
target process. How do I find the pointer to the
taskstruct of that task I want to send a signal to, if
I only know its PID?

Thanks, any help would be greatly appreciated.

Sam


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:57    [W:0.042 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site