Is it the only way to allocate a Power IRP using PoRequestPowerIrp?

Hello,

DDK says the we can use PoRequestPowerIrp to allocate a Power IRP send
to the top of the driver stack when power policy owner receivce a system
set-power IRP. Now, in my design, I need to duplicate the Device set-power
IRP and send them to different device object below my driver. Is it the only
way to allocate a Power IRP using PoRequestPowerIrp?

Thanks.
God will bless you and your family!
Wayne Gong
xxxxx@yahoo.com.cn

You can’t just send a power IRP to another stack. The power-policy
owner in the stack has to request one.

Are you hoping to forcibly power up a stack you depend on but that you
didn’t attach to?

-p

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Wayne Gong
Sent: Wednesday, March 14, 2007 2:04 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Is it the only way to allocate a Power IRP using
PoRequestPowerIrp?

Hello,

DDK says the we can use PoRequestPowerIrp to allocate a Power IRP
send
to the top of the driver stack when power policy owner receivce a system

set-power IRP. Now, in my design, I need to duplicate the Device
set-power
IRP and send them to different device object below my driver. Is it the
only
way to allocate a Power IRP using PoRequestPowerIrp?

Thanks.
God will bless you and your family!
Wayne Gong
xxxxx@yahoo.com.cn


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

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

In my design, I create a raid pdo with some of real hard disks. That it is
to say, I hide these real hard disk and report a raid disk to OS.
When OS sleep or hibernate, she will send some Power Irp to this raid pdo. I
want to get some copys of these IRP and send them to different real hard
disk and wait them complete.
I know that we can use IoAllocateIrp to create a Irp and sent it to next
lower driver, but IoAllocateIrp can not allocate a Power IRP. What should I
do?

“Peter Wieland” ???:xxxxx@ntdev…
You can’t just send a power IRP to another stack. The power-policy
owner in the stack has to request one.

Are you hoping to forcibly power up a stack you depend on but that you
didn’t attach to?

-p

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Wayne Gong
Sent: Wednesday, March 14, 2007 2:04 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Is it the only way to allocate a Power IRP using
PoRequestPowerIrp?

Hello,

DDK says the we can use PoRequestPowerIrp to allocate a Power IRP
send
to the top of the driver stack when power policy owner receivce a system

set-power IRP. Now, in my design, I need to duplicate the Device
set-power
IRP and send them to different device object below my driver. Is it the
only
way to allocate a Power IRP using PoRequestPowerIrp?

Thanks.
God will bless you and your family!
Wayne Gong
xxxxx@yahoo.com.cn


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

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

How do you “hid the[se] real hard disk”?

-p

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Wayne Gong
Sent: Wednesday, March 14, 2007 10:59 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Is it the only way to allocate a Power IRP using
PoRequestPowerIrp?

In my design, I create a raid pdo with some of real hard disks. That it
is
to say, I hide these real hard disk and report a raid disk to OS.
When OS sleep or hibernate, she will send some Power Irp to this raid
pdo. I
want to get some copys of these IRP and send them to different real hard

disk and wait them complete.
I know that we can use IoAllocateIrp to create a Irp and sent it to next

lower driver, but IoAllocateIrp can not allocate a Power IRP. What
should I
do?

“Peter Wieland” ???:xxxxx@ntdev…
You can’t just send a power IRP to another stack. The power-policy
owner in the stack has to request one.

Are you hoping to forcibly power up a stack you depend on but that you
didn’t attach to?

-p

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Wayne Gong
Sent: Wednesday, March 14, 2007 2:04 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Is it the only way to allocate a Power IRP using
PoRequestPowerIrp?

Hello,

DDK says the we can use PoRequestPowerIrp to allocate a Power IRP
send
to the top of the driver stack when power policy owner receivce a system

set-power IRP. Now, in my design, I need to duplicate the Device
set-power
IRP and send them to different device object below my driver. Is it the
only
way to allocate a Power IRP using PoRequestPowerIrp?

Thanks.
God will bless you and your family!
Wayne Gong
xxxxx@yahoo.com.cn


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

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


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

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

When OS query bus relation, I do not report it to OS but manage it by myself. When I trace my driver using WinDbg, I fount that OS do not send a device set-power Irp to RAID pdo when operation system hibernate. So, it can not hibernate. I think the reason is that OS do not save hibernation file using my driver, but it send all the request to the driver who deal with the real hard disk. But OS can not save hibernation file in these disk with out the help of my driver.

So, I think if I want OS can support hibernation. I should a System and Device set-power IRP to all member disks who compose the RAID and send a Device set-power IRP to RAID pdo when I process the System set-power IRP. SO, I want to know how can I set System and Device set-power to all member disks.

by the way, what should I do if I can let OS know my driver was a necessay driver when system hibernating.

Thanks for your another message

> In my design, I create a raid pdo with some of real hard disks. That it is

Have you tried MN_QUERY_DEVICE_RELATIONS/PowerRelations?


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

IRP_MN_QUERY_DEVICE_RELATIONS/PowerRelations (and IRP_MN_POWER_SEQUENCE) are both defined in a header, but neither are implemented by the OS or supported by an existing driver.

d