Correct value for StackSize

In the OSR IFS FAQ Q34
http://www.osr.com/resources_ifsfaq.shtml#Q34

It says:
“Don’t forget to set the StackSize field of the device
object correctly!”

What is the correct value to set it to?

Thanks,

Randy


Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

Good question. You need to read the docs. You have to add at least one to
the value used by the device below you. You could need more in some special
cases were you consume more than one location in your code. Hard to do, but
possible.

----- Original Message -----
From: “Randy Cook”
To: “File Systems Developers”
Sent: Tuesday, April 15, 2003 5:41 PM
Subject: [ntfsd] Correct value for StackSize

> In the OSR IFS FAQ Q34
> http://www.osr.com/resources_ifsfaq.shtml#Q34
>
> It says:
> “Don’t forget to set the StackSize field of the device
> object correctly!”
>
> What is the correct value to set it to?
>
> Thanks,
>
> Randy
>
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@yoshimuni.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

How many stack locations does your driver need (hint: most drivers will
answer “one” here.) Then, how many does the driver below you need (hint:
get this from that driver’s StackSize field.) Add these two values together
and store them in your StackSize field.

If you might call two different lower level drivers, use the max of their
StackSize values.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: Randy Cook [mailto:xxxxx@yahoo.com]
Sent: Tuesday, April 15, 2003 5:42 PM
To: File Systems Developers
Subject: [ntfsd] Correct value for StackSize

In the OSR IFS FAQ Q34
http://www.osr.com/resources_ifsfaq.shtml#Q34

It says:
“Don’t forget to set the StackSize field of the device
object correctly!”

What is the correct value to set it to?

Thanks,

Randy


Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com


You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

> It says:

“Don’t forget to set the StackSize field of the device
object correctly!”

What is the correct value to set it to?

LowerDevice->StackSize + 1

Max