Hello,

I need to write a small helper driver. It will provide a kind of mailbox for
some data, that should be written from any other device driver, file system
driver or application. Since other drivers are loaded quite early I want to
load the helper driver as early as possible. The interface to the driver
could be i.e. a stream driver or any other interface.

The helper driver will only use the coredll.

AFAIK file system drivers are loaded before stream drivers. Is this
generally true? How can I determine the load order and how can I configure
the system to load my helper driver as early as possible?

Regards,
Helge

--
Time is an ocean but it ends at the shore.

Re: Driver load order by Bruce

Bruce
Thu Jun 05 05:41:51 PDT 2008

[HKEY_LOCAL_MACHINE\Drivers\Builtin\<Any Driver>]
"Order"=dword:<Load Order>

Where the smaller the number assigned to Order the earlier the driver loads.
Of course if you put the driver in the Boot hive, it will load even earlier.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

"Helge Kruse" <Helge.Kruse-nospam@gmx.net> wrote in message
news:4847d02f$0$6552$9b4e6d93@newsspool3.arcor-online.net...
> Hello,
>
> I need to write a small helper driver. It will provide a kind of mailbox
> for some data, that should be written from any other device driver, file
> system driver or application. Since other drivers are loaded quite early I
> want to load the helper driver as early as possible. The interface to the
> driver could be i.e. a stream driver or any other interface.
>
> The helper driver will only use the coredll.
>
> AFAIK file system drivers are loaded before stream drivers. Is this
> generally true? How can I determine the load order and how can I configure
> the system to load my helper driver as early as possible?
>
> Regards,
> Helge
>
> --
> Time is an ocean but it ends at the shore.
>
>



Re: Driver load order by Helge

Helge
Thu Jun 05 06:06:21 PDT 2008

Bruce,

thanks for reply. I have only RAM based registry, so I think the boot hive
will not application in my case.
I know the Order value for drivers. Drivers are loaded using the
HKLM\Drivers\BuiltIn key from device.exe. But file system driver are loaded
by store manager using the HKLM\StoreManager\AutoLoad keys. How is the order
defined regarding this two things. Further you have BootPhases.

Regards,
Helge

"Bruce Eitman [eMVP]" <bruce.eitman.nospam@EuroTech.com.nospam> wrote in
message news:uZJbJmwxIHA.4704@TK2MSFTNGP03.phx.gbl...
> [HKEY_LOCAL_MACHINE\Drivers\Builtin\<Any Driver>]
> "Order"=dword:<Load Order>
>
> Where the smaller the number assigned to Order the earlier the driver
> loads. Of course if you put the driver in the Boot hive, it will load even
> earlier.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> Bruce.Eitman AT EuroTech DOT com
> My BLOG http://geekswithblogs.net/bruceeitman
>
> EuroTech Inc.
> www.EuroTech.com
>
> "Helge Kruse" <Helge.Kruse-nospam@gmx.net> wrote in message
> news:4847d02f$0$6552$9b4e6d93@newsspool3.arcor-online.net...
>> Hello,
>>
>> I need to write a small helper driver. It will provide a kind of mailbox
>> for some data, that should be written from any other device driver, file
>> system driver or application. Since other drivers are loaded quite early
>> I want to load the helper driver as early as possible. The interface to
>> the driver could be i.e. a stream driver or any other interface.
>>
>> The helper driver will only use the coredll.
>>
>> AFAIK file system drivers are loaded before stream drivers. Is this
>> generally true? How can I determine the load order and how can I
>> configure the system to load my helper driver as early as possible?
>>
>> Regards,
>> Helge
>>
>> --
>> Time is an ocean but it ends at the shore.
>>
>>
>
>



Re: Driver load order by Helge

Helge
Fri Jun 06 07:36:14 PDT 2008

A block driver also exposes a stream driver interface. It is possible to
load a block driver from the Storagemanager (for a file system driver).

How can I access the stream driver interface of the block driver?

When the storage manager is loading file system driver, device.exe is not
yet loaded. How can I access a block driver from any nother block driver or
file system driver during this system start up phase?

Regards,
Helge

"Bruce Eitman [eMVP]" <bruce.eitman.nospam@EuroTech.com.nospam> wrote in
message news:uZJbJmwxIHA.4704@TK2MSFTNGP03.phx.gbl...
> [HKEY_LOCAL_MACHINE\Drivers\Builtin\<Any Driver>]
> "Order"=dword:<Load Order>
>
> Where the smaller the number assigned to Order the earlier the driver
> loads. Of course if you put the driver in the Boot hive, it will load even
> earlier.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> Bruce.Eitman AT EuroTech DOT com
> My BLOG http://geekswithblogs.net/bruceeitman
>
> EuroTech Inc.
> www.EuroTech.com
>
> "Helge Kruse" <Helge.Kruse-nospam@gmx.net> wrote in message
> news:4847d02f$0$6552$9b4e6d93@newsspool3.arcor-online.net...
>> Hello,
>>
>> I need to write a small helper driver. It will provide a kind of mailbox
>> for some data, that should be written from any other device driver, file
>> system driver or application. Since other drivers are loaded quite early
>> I want to load the helper driver as early as possible. The interface to
>> the driver could be i.e. a stream driver or any other interface.
>>
>> The helper driver will only use the coredll.
>>
>> AFAIK file system drivers are loaded before stream drivers. Is this
>> generally true? How can I determine the load order and how can I
>> configure the system to load my helper driver as early as possible?
>>
>> Regards,
>> Helge
>>
>> --
>> Time is an ocean but it ends at the shore.
>>
>>
>
>



Re: Driver load order by Dean

Dean
Wed Jun 11 06:17:50 PDT 2008

They don't have to be loaded with AutoLoad. If it is block driver based,
simply load the block driver as a regular stream driver. Filesys will
detect the block driver load and load on top of it.

--
Dean Ramsier - eMVP
BSQUARE Corporation


"Helge Kruse" <Helge.Kruse-nospam@gmx.net> wrote in message
news:4847e4cc$0$6602$9b4e6d93@newsspool2.arcor-online.net...
> Bruce,
>
> thanks for reply. I have only RAM based registry, so I think the boot hive
> will not application in my case.
> I know the Order value for drivers. Drivers are loaded using the
> HKLM\Drivers\BuiltIn key from device.exe. But file system driver are
> loaded by store manager using the HKLM\StoreManager\AutoLoad keys. How is
> the order defined regarding this two things. Further you have BootPhases.
>
> Regards,
> Helge
>
> "Bruce Eitman [eMVP]" <bruce.eitman.nospam@EuroTech.com.nospam> wrote in
> message news:uZJbJmwxIHA.4704@TK2MSFTNGP03.phx.gbl...
>> [HKEY_LOCAL_MACHINE\Drivers\Builtin\<Any Driver>]
>> "Order"=dword:<Load Order>
>>
>> Where the smaller the number assigned to Order the earlier the driver
>> loads. Of course if you put the driver in the Boot hive, it will load
>> even earlier.
>>
>> --
>> Bruce Eitman (eMVP)
>> Senior Engineer
>> Bruce.Eitman AT EuroTech DOT com
>> My BLOG http://geekswithblogs.net/bruceeitman
>>
>> EuroTech Inc.
>> www.EuroTech.com
>>
>> "Helge Kruse" <Helge.Kruse-nospam@gmx.net> wrote in message
>> news:4847d02f$0$6552$9b4e6d93@newsspool3.arcor-online.net...
>>> Hello,
>>>
>>> I need to write a small helper driver. It will provide a kind of mailbox
>>> for some data, that should be written from any other device driver, file
>>> system driver or application. Since other drivers are loaded quite early
>>> I want to load the helper driver as early as possible. The interface to
>>> the driver could be i.e. a stream driver or any other interface.
>>>
>>> The helper driver will only use the coredll.
>>>
>>> AFAIK file system drivers are loaded before stream drivers. Is this
>>> generally true? How can I determine the load order and how can I
>>> configure the system to load my helper driver as early as possible?
>>>
>>> Regards,
>>> Helge
>>>
>>> --
>>> Time is an ocean but it ends at the shore.
>>>
>>>
>>
>>
>
>



Re: Driver load order by Dean

Dean
Wed Jun 11 06:20:51 PDT 2008

Load your block drivers as regular stream drivers first (not using the
AutoLoad key) and the problem goes away. I doubt you'll be able to access
the stream driver interface before device manager is up...

--
Dean Ramsier - eMVP
BSQUARE Corporation


"Helge Kruse" <Helge.Kruse-nospam@gmx.net> wrote in message
news:48494b5f$0$7542$9b4e6d93@newsspool1.arcor-online.net...
>A block driver also exposes a stream driver interface. It is possible to
>load a block driver from the Storagemanager (for a file system driver).
>
> How can I access the stream driver interface of the block driver?
>
> When the storage manager is loading file system driver, device.exe is not
> yet loaded. How can I access a block driver from any nother block driver
> or file system driver during this system start up phase?
>
> Regards,
> Helge
>
> "Bruce Eitman [eMVP]" <bruce.eitman.nospam@EuroTech.com.nospam> wrote in
> message news:uZJbJmwxIHA.4704@TK2MSFTNGP03.phx.gbl...
>> [HKEY_LOCAL_MACHINE\Drivers\Builtin\<Any Driver>]
>> "Order"=dword:<Load Order>
>>
>> Where the smaller the number assigned to Order the earlier the driver
>> loads. Of course if you put the driver in the Boot hive, it will load
>> even earlier.
>>
>> --
>> Bruce Eitman (eMVP)
>> Senior Engineer
>> Bruce.Eitman AT EuroTech DOT com
>> My BLOG http://geekswithblogs.net/bruceeitman
>>
>> EuroTech Inc.
>> www.EuroTech.com
>>
>> "Helge Kruse" <Helge.Kruse-nospam@gmx.net> wrote in message
>> news:4847d02f$0$6552$9b4e6d93@newsspool3.arcor-online.net...
>>> Hello,
>>>
>>> I need to write a small helper driver. It will provide a kind of mailbox
>>> for some data, that should be written from any other device driver, file
>>> system driver or application. Since other drivers are loaded quite early
>>> I want to load the helper driver as early as possible. The interface to
>>> the driver could be i.e. a stream driver or any other interface.
>>>
>>> The helper driver will only use the coredll.
>>>
>>> AFAIK file system drivers are loaded before stream drivers. Is this
>>> generally true? How can I determine the load order and how can I
>>> configure the system to load my helper driver as early as possible?
>>>
>>> Regards,
>>> Helge
>>>
>>> --
>>> Time is an ocean but it ends at the shore.
>>>
>>>
>>
>>
>
>



Re: Driver load order by Helge

Helge
Wed Jun 11 22:35:13 PDT 2008


"Dean Ramsier" <ramsiernospam@nospam.com> wrote in message
news:%23Di%23UX8yIHA.4808@TK2MSFTNGP02.phx.gbl...
> Load your block drivers as regular stream drivers first (not using the
> AutoLoad key) and the problem goes away. I doubt you'll be able to access
> the stream driver interface before device manager is up...

Yes you're right. It fails at this early time. I need the device manager.
Thanks for help.

Regards,
Helge