Can APO use #pragma data_seg?

伸一 高山 21 Reputation points
2021-03-16T03:21:12.763+00:00

Hi.
The following page states that the memory must be nonpageable.
https://learn.microsoft.com/ja-jp/windows-hardware/drivers/audio/implementing-audio-processing-objects

Are paged memory and shared memory the same?
Can APO use shared memory (#pragma data_seg) ?

Best regards.

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,538 questions
0 comments No comments
{count} votes

Accepted answer
  1. Doron Holan 1,801 Reputation points
    2021-03-16T16:39:42.747+00:00

    Paged memory and shared memory are not the same. The doc page is a little confusing. A user mode DLL cannot normally allocated non paged memory nor mark code as non pageable. In user mode you can use a shared data segment to share memory between processes. The kernel mode driver part of your APO is where you can control non pageable allocations and code. There is only address space for kernel drivers and only one instance of your driver image is loaded, so a shared segment doesn't make sense in kernel mode


0 additional answers

Sort by: Most helpful