mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: <samandbuffy@yahoo.com>
To: "Victoria W." <wicki@terror.de>, linux-kernel@vger.kernel.org
Cc: volker@erste.de
Subject: send_sig_info help?
Date: Mon, 16 Jul 2001 09:45:46 -0700 (PDT)	[thread overview]
Message-ID: <20010716164546.55938.qmail@web13903.mail.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.10.10107161814140.3877-100000@csb.terror.de>


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/

  reply	other threads:[~2001-07-16 16:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20010716161031Z267445-720+2808@vger.kernel.org>
2001-07-16 16:28 ` oops in 2.4.6/2.4.5 Victoria W.
2001-07-16 16:45   ` samandbuffy [this message]
2001-07-17  1:01     ` send_sig_info help? Keith Owens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010716164546.55938.qmail@web13903.mail.yahoo.com \
    --to=samandbuffy@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=volker@erste.de \
    --cc=wicki@terror.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®