如何在内核空间中分配一系列固定大小的字符阵列?
我知道在内核空间中,一个人通常使用ExallocatePoolWithTag函数,但是我不知道如何为动态尺寸的固定尺寸chars阵列分配内存(一种2x2矩阵,该线路的数量可以动态增加) 。
I know that in kernel space one usually uses ExAllocatePoolWithTag function, but I don't know how to allocate memory for a dynamically-sized array of fixed-sized arrays of chars (kind of 2x2 matrix of which the number of lines could dynamically increase).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用LookAside列表来动态分配固定尺寸的缓冲区(在您的情况下,固定尺寸的字符阵列)。
您可以在MSDN上阅读有关它的更多信息,它的文档写得很好:
https://learn.microsoft.com/en-us/windows-hardware/kernel/kernel/using-lookaside-lists
You can use Lookaside lists for allocating fixed-size buffers (in your case fixed-sized arrays of chars) dynamically.
You can read more about it on MSDN, the documentation for it is very well written:
https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/using-lookaside-lists