Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Sept/Oct 2019 Issue of The NT Insider available


Download PDF here: http://insider.osr.com/2019/ntinsider_2019_01.pdf

It’s a particularly BIG issue, too: 40 pages of technical goodness, ranging from WDF to Minifilters. Check it out.
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

How to sleep in NDIS6.0 lwf driver?

OSR_Community_UserOSR_Community_User Member Posts: 110,217
Hi All,

I'm deveop an ndis 6.0 filter driver, for some reason I want to sleep in my code.I found NdisMSleep function but it doesn't work for me. Is there any function can in instead of it?

Thanks a lot!

Comments

  • Ged_MurphyGed_Murphy Member - All Emails Posts: 116
    NdisMSleep uses a simple KeSetTimer / KeWaitForSinglObject method. Are you
    sure you have your time interval correct and are running at PASSIVE_LEVEL?

    KeStallExecutionProcessor or ZwDelayExecution are two ways of
    stalling/sleeping. Although I'd suggest that if you're doing this in your
    driver, you're likely using a bad design.

    Ged.

    -----Original Message-----
    From: xxxxx@lists.osr.com
    [mailto:xxxxx@lists.osr.com] On Behalf Of ericdm@163.com
    Sent: 12 August 2016 09:09
    To: Windows System Software Devs Interest List <xxxxx@lists.osr.com>
    Subject: [ntdev] How to sleep in NDIS6.0 lwf driver?

    Hi All,

    I'm deveop an ndis 6.0 filter driver, for some reason I want to sleep in my
    code.I found NdisMSleep function but it doesn't work for me. Is there any
    function can in instead of it?

    Thanks a lot!

    ---
    NTDEV is sponsored by OSR

    Visit the list online at:
    <http://www.osronline.com/showlists.cfm?list=ntdev>;

    MONTHLY seminars on crash dump analysis, WDF, Windows internals and software
    drivers!
    Details at <http://www.osr.com/seminars>;

    To unsubscribe, visit the List Server section of OSR Online at
    <http://www.osronline.com/page.cfm?name=ListServer>;
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    Hi Ged,

    Thanks for quick replay. It's my fault, NdisMSleep is Microseconds, i wrong look milliseconds. too fool.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Writing WDF Drivers 21 Oct 2019 OSR Seminar Space & ONLINE
Internals & Software Drivers 18 Nov 2019 Dulles, VA
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 27 Apr 2020 OSR Seminar Space & ONLINE