How to fix KernelCalls failure in HLK test

Baowen Zheng 25 Reputation points
2023-03-14T01:37:02.5+00:00

Hi windows:

we are working on a NIC mimiport driver HLK tests in OS of windows server 2016.

when running HLK tests with the case name as 1c_KernelCalls, we get the failure as:

Variation #5 Verifying calls made to NTOSKRNL.EXE

This comparison with NTOSKRNL.EXE is safe

FAILED: [20944] Failed on function call to IoGetDmaAdapter in module NTOSKRNL.EXE! Do not use this call.

dose that means we can not use the API of IoGetDmaAdapter to create an DMA adapter?

since it is recommanded in the windows sample code, so we are confused.

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,368 questions
Windows Network
Windows Network
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Network: A group of devices that communicate either wirelessly or via a physical connection.
642 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,541 questions
0 comments No comments
{count} votes

Accepted answer
  1. Limitless Technology 43,926 Reputation points
    2023-03-14T14:38:16.6+00:00

    Hello there,

    Have you linked ntstrsafe.lib in your driver ?

    Disassemble your driver to discover why DbgPrint is still referenced. The import stub was pulled in by something during the link operation. Perhaps you are linking a library that references DbgPrint() or a header file with a static/inline references it?

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful