Ioctl to scsi miniport driver

Hi,
Is there a way I can send my own custom Ioctl to Scsi miniport driver
(scsiport object ) from a User mode App.
I am able to send system defined Ioctls but somehow when i send my own I
get *Incorrect Function* error. Also, all system defined Ioctls when
send translates to Srb with Function EXECUTE_SCSI while I thought they
shud have been with SRB_FUNCTION_IO_CONTROL.
If this is a normal behaviour when does FUNCITON_IO_CONTROL gets a hit…

Clues Plz.
TIA
Rahul

Hi Rahul, Look at DDK’s SPTI sample. It explains well.

Bala

-----Original Message-----
From: rahul.gupta [mailto:xxxxx@dcmtech.co.in]
Posted At: 21 November 2002 12:55
Posted To: ntdev
Conversation: [ntdev] Ioctl to scsi miniport driver
Subject: [ntdev] Ioctl to scsi miniport driver

Hi,
Is there a way I can send my own custom Ioctl to Scsi miniport driver
(scsiport object ) from a User mode App.
I am able to send system defined Ioctls but somehow when i send my own I

get *Incorrect Function* error. Also, all system defined Ioctls when
send translates to Srb with Function EXECUTE_SCSI while I thought they
shud have been with SRB_FUNCTION_IO_CONTROL.
If this is a normal behaviour when does FUNCITON_IO_CONTROL gets a
hit…

Clues Plz.
TIA
Rahul


You are currently subscribed to ntdev as: xxxxx@avantisworld.com
To unsubscribe send a blank email to %%email.unsub%%

you need to send IOCTL_SCSI_MINIPORT and include an SRB_IO_CONTROL structure as the input & output buffers.

-p


From: rahul.gupta [mailto:xxxxx@dcmtech.co.in]
Sent: Thu 11/21/2002 4:54 AM
To: NT Developers Interest List
Subject: [ntdev] Ioctl to scsi miniport driver

Hi,
Is there a way I can send my own custom Ioctl to Scsi miniport driver
(scsiport object ) from a User mode App.
I am able to send system defined Ioctls but somehow when i send my own I
get *Incorrect Function* error. Also, all system defined Ioctls when
send translates to Srb with Function EXECUTE_SCSI while I thought they
shud have been with SRB_FUNCTION_IO_CONTROL.
If this is a normal behaviour when does FUNCITON_IO_CONTROL gets a hit…

Clues Plz.
TIA
Rahul


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to %%email.unsub%%

You can send a vendor custom CDB in and SRB (EXECUTE SRB).

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of rahul.gupta
Sent: Thursday, November 21, 2002 4:55 AM
To: NT Developers Interest List
Subject: [ntdev] Ioctl to scsi miniport driver

Hi,
Is there a way I can send my own custom Ioctl to Scsi miniport driver
(scsiport object ) from a User mode App.
I am able to send system defined Ioctls but somehow when i send my own I

get *Incorrect Function* error. Also, all system defined Ioctls when
send translates to Srb with Function EXECUTE_SCSI while I thought they
shud have been with SRB_FUNCTION_IO_CONTROL.
If this is a normal behaviour when does FUNCITON_IO_CONTROL gets a
hit…

Clues Plz.
TIA
Rahul


You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%

which works great until someone wants to use his controller with a
device that uses that vendors specific CDB code. And it would require
that his miniport set MappedBuffers which slows down all IO operations
just to handle this special case (assuming he doesn’t already do that).

IOCTL_SCSI_MINIPORT

-p

-----Original Message-----
From: Jamey Kirby [mailto:xxxxx@storagecraft.com]
Sent: Thursday, November 21, 2002 2:35 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Ioctl to scsi miniport driver

You can send a vendor custom CDB in and SRB (EXECUTE SRB).

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of rahul.gupta
Sent: Thursday, November 21, 2002 4:55 AM
To: NT Developers Interest List
Subject: [ntdev] Ioctl to scsi miniport driver

Hi,
Is there a way I can send my own custom Ioctl to Scsi miniport driver
(scsiport object ) from a User mode App.
I am able to send system defined Ioctls but somehow when i send my own I

get *Incorrect Function* error. Also, all system defined Ioctls when
send translates to Srb with Function EXECUTE_SCSI while I thought they
shud have been with SRB_FUNCTION_IO_CONTROL.
If this is a normal behaviour when does FUNCITON_IO_CONTROL gets a
hit…

Clues Plz.
TIA
Rahul


You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%