阅读:2140回复:5
关于Device Object的Stacksize域?
关于Device Object的 Stacksize 域我怎么用不太明白呢?
谁能给我指点一二? |
|
|
沙发#
发布于:2001-10-30 09:25
我想StackSize应该是在“分层”的驱动程序中指明从“本”驱动程序开始的驱动程序的“层”数,自己琢磨的,不知道对不对。
|
|
板凳#
发布于:2001-10-30 10:54
设置stacksize能够保证发送到较高层驱动程序的IRP将包含特定驱动程序的I\O栈位置,加上当前I\O栈位置数,而得到链中所有的较低层驱动程序。
|
|
|
地板#
发布于:2001-10-30 13:26
有时IoAllocateIrp()要用到它。
|
|
地下室#
发布于:2001-11-02 15:56
用的时候必须加一对吗?stackSize+1
|
|
|
5楼#
发布于:2010-05-16 17:11
IoCreateDevice sets the StackSize field of a newly created device object to one. A lowest-level driver can ignore this field. When a higher-level driver calls IoAttachDeviceToDeviceStack to attach itself to the next-lower driver, that routine automatically sets the StackSize field in the device object to that of the next-lower driver's device object plus one.
|
|