From: duane@hunch.zk3.dec.com (Andrew Duane USG)
Subject: Re: Current process & other key kernel global symbols
Date: Tue, 01 Oct 2002 12:25:40 GMT [thread overview]
Message-ID: <8vgm9.7$PG2.331808@news.cpqcorp.net> (raw)
In-Reply-To: 0S2m9.330918$216.13951392@bin4.nnrp.aus1.giganews.com
In article <0S2m9.330918$216.13951392@bin4.nnrp.aus1.giganews.com> "Earl Lakia" <elakia@hotmail.com> writes:
>Is there a global symbol that a kernel writer could pick up to get the
>current process's PID or p_proc? I tried getpid() but it crashes
>by driver (not calling when in ISR, but the read & write entries
>of the driver).
>
>Is there a good way to get a description of all of the global
>symbols available?
>
>Also how about the current clock tick?
Well, for starters you would have to mention which version of the OS you
are using. Things like that change.
Which brings me to my next point. Although it is possible to get things
like the "current process' PID", the definition of current process is at
best vague at certain points in the kernel. If you are servicing a system
call or some other such thing, then the current process is pretty well
defined. If you are in an ISR, the current process means little to you.
Segue into my next next point. Because such things change frequently, we do
not document them to avoid having compatibility problems with drivers. The
interfaces and variables we document are "guaranteed". Those we don't aren't.
And as for "all the global symbols", there are thousands. 99.9% of them mean
nothing to anyone except some small piece of code.
If you'd like to contact me offline at one of my email addresses below,
I'd be happy to lend a little more guidance.
--
Andrew L. Duane (JOT-7) duane@zk3.dec.com
HP/Compaq Corporation Andrew.Duane@compaq.com
110 Spit Brook Road Andrew.Duane@hp.com
M/S ZKO3-3/U14
Nashua, NH 03062-2698 (603)-884-1294
prev parent reply other threads:[~2002-10-01 12:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-30 20:54 Current process & other key kernel global symbols Earl Lakia
2002-10-01 12:25 ` Andrew Duane USG [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox