Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Sept/Oct 2019 Issue of The NT Insider available


Download PDF here: http://insider.osr.com/2019/ntinsider_2019_01.pdf

It’s a particularly BIG issue, too: 40 pages of technical goodness, ranging from WDF to Minifilters. Check it out.
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

StorPortEnablePassiveInitialization is not working

Muthazhagan_ArulbalasubramaniMuthazhagan_Arulbalasubramani Member - All Emails Posts: 16
Hi All,

I am developing a Storport Miniport driver, and I came across a strange problem today.

I have below sample routines:

HwInit(){
StorPortEnablePassiveInitialization(PassiveInit);
}

PassiveInit(){
//DPC initialization
}

HwStorAdapterControl(){
ScsiQuerySupportedControlTypes:
SCSI_STOP_ADAPTER
//I have registered only SCSI_STOP_ADAPTER.
}
I installed the driver, driverentry -> FindAdapter -> HwInit -> PassiveInit -> AdapterControl Executed in Sequence. Driver successfully installed.

Then I did a Power Off(Cold) and Powerd On the PC, Since I didn't register ScsiRestartAdapter in adapter power control routine, I was expecting Findadapter, hwinit,and PassiveInit to be called. But the strange part is only Findadapter and HwInit was getting called not PassiveInit().

Eventhough StorPortEnablePassiveInitialization(PassiveInit) was returing TRUE. still PassiveInit was not getting called.

Any suggestion would be helpful.

Thanks in advance,
Muthu
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Writing WDF Drivers 21 Oct 2019 OSR Seminar Space & ONLINE
Internals & Software Drivers 18 Nov 2019 Dulles, VA
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 27 Apr 2020 OSR Seminar Space & ONLINE