IRQL level

Hi All,

My driver is receiving internal ioctl at IRQL=DISPATCH_LEVEL.
My question is at what IRQL level SCSIPORT driver handles
i/o’s?

Regards,
Rajesh

If you are in the storage stack, you must be prepared to handle IOCTLs at
IRQL == DISPATCH_LEVEL.


Mark Cariddi
Consulting Associate
OSR, Open Systems Resources, Inc.
http://www.osr.com/

“Rajesh C” wrote in message news:xxxxx@ntdev…
> Hi All,
>
> My driver is receiving internal ioctl at IRQL=DISPATCH_LEVEL.
> My question is at what IRQL level SCSIPORT driver handles
> i/o’s?
>
> Regards,
> Rajesh
>
>
>

Thanks Mark .

In what case I will get IOCTLs at IRQL == DISPATCH_LEVEL?

Rajesh

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Mark Cariddi
Sent: Tuesday, April 20, 2004 5:09 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] IRQL level

If you are in the storage stack, you must be prepared to handle IOCTLs at
IRQL == DISPATCH_LEVEL.


Mark Cariddi
Consulting Associate
OSR, Open Systems Resources, Inc.
http://www.osr.com/

“Rajesh C” wrote in message news:xxxxx@ntdev…
> Hi All,
>
> My driver is receiving internal ioctl at IRQL=DISPATCH_LEVEL.
> My question is at what IRQL level SCSIPORT driver handles
> i/o’s?
>
> Regards,
> Rajesh
>
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@patni.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi Rajesh,

If the call originate from user mode, say a read/write request from user
mode app: it will be in the passive level. But the driver interrupt routines
(ISR connected by IoConnectInterrupt ) and DPC routines are execute in
DISPATCH level or above.

regs
sisimon
----- Original Message -----
From: “Rajesh C”
To: “Windows System Software Devs Interest List”
Sent: Tuesday, April 20, 2004 5:23 PM
Subject: RE: [ntdev] IRQL level

> Thanks Mark .
>
> In what case I will get IOCTLs at IRQL == DISPATCH_LEVEL?
>
> Rajesh
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Mark Cariddi
> Sent: Tuesday, April 20, 2004 5:09 PM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] IRQL level
>
>
> If you are in the storage stack, you must be prepared to handle IOCTLs at
> IRQL == DISPATCH_LEVEL.
>
> –
> Mark Cariddi
> Consulting Associate
> OSR, Open Systems Resources, Inc.
> http://www.osr.com/
>
>
> “Rajesh C” wrote in message
news:xxxxx@ntdev…
> > Hi All,
> >
> > My driver is receiving internal ioctl at IRQL=DISPATCH_LEVEL.
> > My question is at what IRQL level SCSIPORT driver handles
> > i/o’s?
> >
> > Regards,
> > Rajesh
> >
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@patni.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@calsoftinc.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

DISPATCH_LEVEL is fine.

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

----- Original Message -----
From: “Rajesh C”
To: “Windows System Software Devs Interest List”
Sent: Tuesday, April 20, 2004 2:23 PM
Subject: [ntdev] IRQL level

> Hi All,
>
> My driver is receiving internal ioctl at IRQL=DISPATCH_LEVEL.
> My question is at what IRQL level SCSIPORT driver handles
> i/o’s?
>
> Regards,
> Rajesh
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

I couldn’t give you an exact list, so I would say expect all IOCTLs at
DISPATCH_LEVEL. BTW, it is a good idea, while debugging, to put ASSERTS in
your code to catch cases where you get called at an IOCTL that you don’t
expect. IIRC, the disk stack calls the SCSIPORT driver at DISPATCH_LEVEL,
but the CD-ROM stack calls at PASSIVE_LEVEL.


Mark Cariddi
Consulting Associate
OSR, Open Systems Resources, Inc.
http://www.osr.com/

“Rajesh C” wrote in message news:xxxxx@ntdev…
> Thanks Mark .
>
> In what case I will get IOCTLs at IRQL == DISPATCH_LEVEL?
>
> Rajesh
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Mark Cariddi
> Sent: Tuesday, April 20, 2004 5:09 PM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] IRQL level
>
>
> If you are in the storage stack, you must be prepared to handle IOCTLs at
> IRQL == DISPATCH_LEVEL.
>
> –
> Mark Cariddi
> Consulting Associate
> OSR, Open Systems Resources, Inc.
> http://www.osr.com/
>
>
> “Rajesh C” wrote in message
news:xxxxx@ntdev…
> > Hi All,
> >
> > My driver is receiving internal ioctl at IRQL=DISPATCH_LEVEL.
> > My question is at what IRQL level SCSIPORT driver handles
> > i/o’s?
> >
> > Regards,
> > Rajesh
> >
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@patni.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>

The CD-ROM stack can also call the port driver at DISPATCH_LEVEL.

-p

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Cariddi
Sent: Tuesday, April 20, 2004 6:34 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] IRQL level

I couldn’t give you an exact list, so I would say expect all IOCTLs at
DISPATCH_LEVEL. BTW, it is a good idea, while debugging, to put ASSERTS
in your code to catch cases where you get called at an IOCTL that you
don’t
expect. IIRC, the disk stack calls the SCSIPORT driver at
DISPATCH_LEVEL,
but the CD-ROM stack calls at PASSIVE_LEVEL.


Mark Cariddi
Consulting Associate
OSR, Open Systems Resources, Inc.
http://www.osr.com/

“Rajesh C” wrote in message
news:xxxxx@ntdev…
> Thanks Mark .
>
> In what case I will get IOCTLs at IRQL == DISPATCH_LEVEL?
>
> Rajesh
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Mark Cariddi
> Sent: Tuesday, April 20, 2004 5:09 PM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] IRQL level
>
>
> If you are in the storage stack, you must be prepared to handle IOCTLs
at
> IRQL == DISPATCH_LEVEL.
>
> –
> Mark Cariddi
> Consulting Associate
> OSR, Open Systems Resources, Inc.
> http://www.osr.com/
>
>
> “Rajesh C” wrote in message
news:xxxxx@ntdev…
> > Hi All,
> >
> > My driver is receiving internal ioctl at IRQL=DISPATCH_LEVEL.
> > My question is at what IRQL level SCSIPORT driver handles
> > i/o’s?
> >
> > Regards,
> > Rajesh
> >
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@patni.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

I assume you are on the storage stack. You will indeed see some IO requests
at dispatch level. If they are destined for the port driver and arrive at
DISPATCH_LEVEL then just send them on down. Ignore DDK documentation that
more or less claims that this will not happen or is some sort of error.
Scsiport is happy to process IRP_MJ_SCSI (MJ_INTERNAL_DEVICE_CONTROL) at
DISPATCH_LEVEL.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rajesh C
Sent: Tuesday, April 20, 2004 6:24 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] IRQL level

Hi All,

My driver is receiving internal ioctl at IRQL=DISPATCH_LEVEL.
My question is at what IRQL level SCSIPORT driver handles i/o’s?

Regards,
Rajesh


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as:
xxxxx@hollistech.com To unsubscribe send a blank email to
xxxxx@lists.osr.com