Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* mpsleep question
@ 1999-08-31  4:00 wuqb
  1999-09-01  4:00 ` John F Carr
  0 siblings, 1 reply; 2+ messages in thread
From: wuqb @ 1999-08-31  4:00 UTC (permalink / raw)


Hi, all,

When I program my device driver, I meet mpsleep question.
The question is like this:

1. First I heave interrupt priority to mask network device
interrupt.
2. Second I call mpsleep function
3. Third when driver wake up, I do not know which interrupt
priority it is now. Is it the same as before heaving
interrupt priority or the same as before calling mpsleep?

I read device driver books about mpsleep. I do not know
the meaning interrupt exactly?
Is it meaning hardware interrupt, or software interrupt, or
signal?


If someone knows the answer, please help me.

Thanks in advance!

Qingbo


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.



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

* Re: mpsleep question
  1999-08-31  4:00 mpsleep question wuqb
@ 1999-09-01  4:00 ` John F Carr
  0 siblings, 0 replies; 2+ messages in thread
From: John F Carr @ 1999-09-01  4:00 UTC (permalink / raw)


In article <7qf7jg$job$1@nnrp1.deja.com>,  <wuqb@nudt.edu.cn> wrote:

>1. First I heave interrupt priority to mask network device interrupt.
>2. Second I call mpsleep function
>3. Third when driver wake up, I do not know which interrupt
>priority it is now. Is it the same as before heaving
>interrupt priority or the same as before calling mpsleep?

Before mpsleep returns it restores the interrupt priority in effect
when it was called.  You do not need to make a second call to the
spl???() function.

-- 
    John Carr (jfc@mit.edu)



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

end of thread, other threads:[~1999-09-01  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-31  4:00 mpsleep question wuqb
1999-09-01  4:00 ` John F Carr

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