问题描述
大家好,
我不确定我应该在哪里发布这个问题.因此,如果与此无关,请忽略此内容.
我正在为x64位OS开发RAMDISK驱动程序.我在PC上安装了6 GB RAM,并且OS可以检测到
如此数量的RAM.
我正在使用 MmAllocatePagesForMdl或 MmAllocatePagesForMdlEx 函数,用于分配内存.
我的驱动程序构建为x64.
我有另一个与x32位兼容的应用程序.我的应用程序正在将用户数据
传递给驱动程序.
现在我的问题是: MmAllocatePagesForMdl或 MmAllocatePagesForMdlEx
函数始终提供甚至我安装了6 GB内存也达到3.99 GB.根据我长期在互联网上搜索的信息,我没有找到任何线索.我应该理解此功能.
我的问题是,我是否需要配置系统或BIOS或其他任何东西.
我在这里堆叠,如果有人有已经解决的类似问题,或者有知识
请帮助我.
感谢您的阅读.
詹姆斯
Hi All,
I don't know exactly where I should post this question. So please ignor this if this is not related to.
I am developing a RAMDISK driver for x64 bit OS. I have 6 GB RAM installed on PC and OS can detect
this amount of RAM.
I am using MmAllocatePagesForMdl or MmAllocatePagesForMdlEx function for allocating the memory.
My driver is build as a x64.
I have another application which is x32 bit compatible. My application is passing the user data
to the driver.
Now my problem is: MmAllocatePagesForMdl or MmAllocatePagesForMdlEx
function always giving 3.99 GB even I have 6 GB ram installed. According to my
long search in internet, I didn't find any clue. This function should work as my understanding.
My question is, do I need to configure the system or bios or any other things.
I am stack here, If some one has the similar problem that already solved, or have the knowledge
please help me.
Thanks for reading.
James
推荐答案
这篇关于关于MmAllocatePagesForMdl,用于分配超过4 GB的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!