Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Current process & other key kernel global symbols
@ 2002-09-30 20:54 Earl Lakia
  2002-10-01 12:25 ` Andrew Duane USG
  0 siblings, 1 reply; 2+ messages in thread
From: Earl Lakia @ 2002-09-30 20:54 UTC (permalink / raw)


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?

-earl
lakia@ipact.com




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Current process & other key kernel global symbols
  2002-09-30 20:54 Current process & other key kernel global symbols Earl Lakia
@ 2002-10-01 12:25 ` Andrew Duane USG
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Duane USG @ 2002-10-01 12:25 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-01 12:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-30 20:54 Current process & other key kernel global symbols Earl Lakia
2002-10-01 12:25 ` Andrew Duane USG

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox