What is the stack limit of ISR and other miniport function?

Discussion in 'Windows Vista Drivers' started by Avraham Fraenkel, Feb 8, 2004.

  1. What is the stack limit of ISR and other miniport function

    I made some search in Microsoft documentation and didn't find it. The only sentence on the subject was in
    http://support.microsoft.com/default.aspx?scid=kb;en-us;18677
    "48) Never use recursive functions that can cause the stack to overflow because the calling thread's kernel-mode stack does not grow dynamically while it is running in kernel-mode.

    So what is the size of the stack which is used by NDIS layer, and how can I check/enlarge it if I need

    Thanks
    Avraha
     
    Avraham Fraenkel, Feb 8, 2004
    #1
    1. Advertisements

  2. 12KB is the kernel stack limit.
    If the thread uses the services of the UI subsystem - it expanded to 64KB.

    --
    Maxim Shatskih, Windows DDK MVP
    StorageCraft Corporation

    http://www.storagecraft.com


    sentence on the subject was in:
    because the calling thread's kernel-mode stack does not grow dynamically while
    it is running in kernel-mode."
     
    Maxim S. Shatskih, Feb 8, 2004
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.