Re: Passive in arbitrary context?



and typically you don't sleep in the context, you pend the irp and do the
work later.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Maxim S. Shatskih" <maxim@xxxxxxxxxxxxxxxx> wrote in message
news:%23tAaPe0rGHA.4296@xxxxxxxxxxxxxxxxxxxxxxx
Dispatch routines of the topmost driver are running in the app's
thread,
the thread which called Read/WriteFile or DeviceIoControl.
PnP and Power dispatch routines are running in system thread context,
so
are any work items queued by ExQueueWorkItem.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com

<BubbaGump> wrote in message
news:e7v9c2t2q7j98s41eu784bki1juv4qgq7r@xxxxxxxxxx
Do some driver routines run in an arbitrary thread context even though
they're called at passive level? (as opposed to the context of the
user thread that requested them or some system thread) Does that mean
that whenever such a routine sleeps, it steals part of the quantum of
a thread that really doesn't care anything about it?




.



Relevant Pages

  • Re: x86_64 frame pointer via thread context
    ... >> From what I understand, when you signal a thread, the signal handler ... >> executes in the thread context and not the main process context. ... So whatever sleep does to the main process ... Mandrake is due to the toolchain they use versus other distros? ...
    (Linux-Kernel)
  • Re: 2.6.21-rc7: BUG: sleeping function called from invalid context at net/core/sock.c:1523
    ... > l2cap_connect_cfmfrom softirq context. ... why this particular driver's .disconnect() couldn't sleep. ... they can sleep, but they should avoid abusing the privilege. ... atomic notifier chain (when that classification happened with the new ...
    (Linux-Kernel)
  • Re: Help File and Help ContextID
    ... Each form and/or report has in its property sheet a property ... entitled "Help Context ID". ... EXAMPLE OF AN ALIAS FILE: ... attach in Access to load it. ...
    (microsoft.public.access.formscoding)
  • Re: Saving Throws
    ... It's apparantly LEGAL within the context of the ... but there is a difference between a natural sleeper and a spell ... sleeper for some reason, a reason that is, frankly, beyond me, except to ... Spell sleep makes ...
    (rec.games.frp.dnd)
  • Re: Why cant we sleep in an ISR?
    ... interrupt is not associated with any context. ... it is specifically because the scheduler can not *resume* the context. ... running process, so if the kernel design had allowed ISR sleep, it ... But ISR sleep has been forbidden from the very beginning. ...
    (Linux-Kernel)