From: William Lee Irwin III <wli@holomorphy.com>
To: Amit Nadgar <vangough_spinlock@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: accessing the struct task_struct using a pid
Date: Sat, 15 Jun 2002 14:13:46 -0700 [thread overview]
Message-ID: <20020615211346.GM22961@holomorphy.com> (raw)
In-Reply-To: <20020615210620.38592.qmail@web14401.mail.yahoo.com>
On Sat, Jun 15, 2002 at 02:06:20PM -0700, Amit Nadgar wrote:
> I am writing a kernel module where I am trying to
> access the task_structs. Now I have tried this using
> various mathods.
> 1) Using the pidhash array.
> Here when I do a insmod I get a unresolved symbol.
EXPORT_SYMBOL(pidhash) or something. Make sure you included sched.h
On Sat, Jun 15, 2002 at 02:06:20PM -0700, Amit Nadgar wrote:
> 2) Directly accessing the location of pidhash as seen in System.map.
> Here when the pidhash_fn hashes the supplied pid the particular
> location into which it indexes in NULL.
How early are you trying to do this?
On Sat, Jun 15, 2002 at 02:06:20PM -0700, Amit Nadgar wrote:
> 3) Starting from the init_task.
> here the next task after the init task is found to be NULL.
Don't do that.
On Sat, Jun 15, 2002 at 02:06:20PM -0700, Amit Nadgar wrote:
> Could some one help me in this matter.
I'm afraid there's only so much help that can be given. Some effort may
be required on your part to make this work. Help with basic concepts
and Linux conventions is more likely to be found on irc.openprojects.net
#kernelnewbies or the kernelnewbies@nl.linux.org mailing list.
Cheers,
Bill
prev parent reply other threads:[~2002-06-15 21:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-15 21:06 Amit Nadgar
2002-06-15 21:13 ` William Lee Irwin III [this message]
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=20020615211346.GM22961@holomorphy.com \
--to=wli@holomorphy.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vangough_spinlock@yahoo.com \
/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®