Hi everyone,
Is there any way I specify in my INF files so that I can use my driver as a SCSIAdapter upperfilter driver at the same time as a SCSIAdapter function driver? Can I archieve this simply by adding my driver’s name in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4D36E97B-E325-11CE-BFC1-08002BE10318}\upperfilters?
Thanks & regards.
Assuming that is the correct guid, yes.
Mark Roddy
On Fri, Feb 11, 2011 at 10:54 PM, wrote:
> Hi everyone,
> Is there any way I specify in my INF files so that I can use my driver as a SCSIAdapter upperfilter driver at the same time as a SCSIAdapter function driver? Can I archieve this simply by adding my driver’s name in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4D36E97B-E325-11CE-BFC1-08002BE10318}\upperfilters?
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Thanks & regards.
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
Yes, you can do that…BUT if you are linking against scsiprt, there is no way you can be a filter with the same driver image because the port driver won’t let you do that (port drivers control the entire driver and thus each device it creates regardless of role).
d
dent from a phine with no keynoard
-----Original Message-----
From: kuangnuzhiren@163.com
Sent: Friday, February 11, 2011 7:52 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to make one driver have two functions
Hi everyone,
Is there any way I specify in my INF files so that I can use my driver as a SCSIAdapter upperfilter driver at the same time as a SCSIAdapter function driver? Can I archieve this simply by adding my driver’s name in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4D36E97B-E325-11CE-BFC1-08002BE10318}\upperfilters?
Thanks & regards.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Thanks. Now in the device manager window I can see my driver as a upperfilter driver for the device ‘LSI Logic PCI-X Ultra320 SCSIAdapter’, but there is not my driver in MS iSCSI initiator’s driver stack. Also my adddevice routine as a upperfilter driver is not call. Why maybe this happened?
Well “no way” would be a bit of an overstatement. The hooking of
dispatch entry points by scsi/storport is not a one-time pad.
No documented way to do this.
Implementing miniport plus filter plus side communication mechanism
would be the semi-documented way, but other than a virtual storport
miniport, there is also no documented fully legitimate way to
implement this.
Mark Roddy
On Sat, Feb 12, 2011 at 12:11 AM, Doron Holan wrote:
> Yes, you can do that…BUT if you are linking against scsiprt, there is no way you can be a filter with the same driver image because the port ?driver won’t let you do that (port drivers control the entire driver and thus each device it creates regardless of role).
>
> d
>
> dent from a phine with no keynoard
>
> -----Original Message-----
> From: kuangnuzhiren@163.com
> Sent: Friday, February 11, 2011 7:52 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] How to make one driver have two functions
>
>
> Hi everyone,
> Is there any way I specify in my INF files so that I can use my driver as a SCSIAdapter upperfilter driver at the same time as a SCSIAdapter function driver? Can I archieve this simply by adding my driver’s name in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4D36E97B-E325-11CE-BFC1-08002BE10318}\upperfilters?
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Thanks & regards.
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
But why to through the pain? I can see dispatch table overriding for the hba itself in dire circumstances, bit to override to enable yourself to be a filter in the same driver image is overkill. Just create another driver which is the upper filter, life will be simpler.
d
dent from a phine with no keynoard
-----Original Message-----
From: Mark Roddy
Sent: Saturday, February 12, 2011 10:19 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] How to make one driver have two functions
Well “no way” would be a bit of an overstatement. The hooking of
dispatch entry points by scsi/storport is not a one-time pad.
No documented way to do this.
Implementing miniport plus filter plus side communication mechanism
would be the semi-documented way, but other than a virtual storport
miniport, there is also no documented fully legitimate way to
implement this.
Mark Roddy
On Sat, Feb 12, 2011 at 12:11 AM, Doron Holan wrote:
> Yes, you can do that…BUT if you are linking against scsiprt, there is no way you can be a filter with the same driver image because the port driver won’t let you do that (port drivers control the entire driver and thus each device it creates regardless of role).
>
> d
>
> dent from a phine with no keynoard
>
> -----Original Message-----
> From: kuangnuzhiren@163.com
> Sent: Friday, February 11, 2011 7:52 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] How to make one driver have two functions
>
>
> Hi everyone,
> Is there any way I specify in my INF files so that I can use my driver as a SCSIAdapter upperfilter driver at the same time as a SCSIAdapter function driver? Can I archieve this simply by adding my driver’s name in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4D36E97B-E325-11CE-BFC1-08002BE10318}\upperfilters?
> Thanks & regards.
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
—
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Outside microsoft the pain associated with each separate binary is
always a consideration.
However, yes, re-hooking the dispatch routines is generally only
justified as an escape from the storport api box for the hba miniport
itself.
Mark Roddy
On Sat, Feb 12, 2011 at 1:57 PM, Doron Holan wrote:
> But why to through the pain? I can see dispatch table overriding for the hba itself in dire circumstances, bit to override to enable yourself to be a filter in the same driver image is overkill. Just create another driver which is the upper filter, life will be simpler.
>
> d
>
> dent from a phine with no keynoard
>
> -----Original Message-----
> From: Mark Roddy
> Sent: Saturday, February 12, 2011 10:19 AM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] How to make one driver have two functions
>
>
> Well “no way” would be a bit of an overstatement. The hooking of
> dispatch entry points by scsi/storport is not a one-time pad.
>
> No documented way to do this.
>
> Implementing miniport plus filter plus side communication mechanism
> would be the semi-documented way, but other than a virtual storport
> miniport, there is also no documented fully legitimate way to
> implement this.
>
> Mark Roddy
>
>
>
> On Sat, Feb 12, 2011 at 12:11 AM, Doron Holan wrote:
>> Yes, you can do that…BUT if you are linking against scsiprt, there is no way you can be a filter with the same driver image because the port ?driver won’t let you do that (port drivers control the entire driver and thus each device it creates regardless of role).
>>
>> d
>>
>> dent from a phine with no keynoard
>>
>> -----Original Message-----
>> From: kuangnuzhiren@163.com
>> Sent: Friday, February 11, 2011 7:52 PM
>> To: Windows System Software Devs Interest List
>> Subject: [ntdev] How to make one driver have two functions
>>
>>
>> Hi everyone,
>> Is there any way I specify in my INF files so that I can use my driver as a SCSIAdapter upperfilter driver at the same time as a SCSIAdapter function driver? Can I archieve this simply by adding my driver’s name in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4D36E97B-E325-11CE-BFC1-08002BE10318}\upperfilters?
>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Thanks & regards.
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>