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).
How to allocate heap in kernel space for an array of fix-sized arrays of characters?
318 Views Asked by linuspauling At
1
There are 1 best solutions below
Related Questions in KERNEL-MODULE
- Insmod is not working
- Different privileges in kernel module execution
- "Segmentation fault" when `rmmod` or `modprobe -r`
- Intercept ELF loader in linux kernel: fs/binfmt_elf.c file via loadable kernel module
- Best way to handle ERESTARTSYS in kthread?
- In linux every process is given a 4GB of virtual address space considering a 32-bit architecture
- Missing headers for kernel in bzImage loaded on qemu
- A better way than printk() to leave a kernel module log?
- Unknown symbol in module
- How to call make kernel module calls or disable interrupts?
- insmod not throwing error for a positive return
- Cannot understand what "error: initializer element is not constant" means
- Why is the probe function in my kernel module not being called?
- How to identify *.ko file given CONFIG_* name?
- Example of use pwm_get() in linux kernel
Related Questions in DEVICE-DRIVER
- Use static analysis tools to check null pointers and memory leaks in Linux device drivers
- Documentation for regulator framework with device tree
- writing device drivers for OpenIndiana
- A Device Driver Has Pool Error
- Restart Windows 8.1 local Service from a C++ app?
- porting PCIe driver from Linux to OracleSolaris
- How to configure Visual Studio 2015 to develop device driver application(KMDF)?
- Which processor would execute hardware interrupt in a muticore system
- Is there any way to remove query posted on linux kernel mailing list?
- How does an O.S. or a high level abstraction layer gain knowledge of the hardware using the device driver?
- DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL]=DeviceControl function not getting called
- what is the issue if bottom halfs are enabled in the interrupt context
- What's the udev-like thing on OSX and how does it work?
- Create Virtual com port
- Driver probe order in Linux Kernel
Related Questions in WINDOWS-KERNEL
- How does windows terminate processes?
- How do I send keyboard & mouse input to the Windows logon screen?
- Communicating kernel space from user-land in Windows
- NdisChainBufferAtBack substitution in NDIS 6
- how to properly wait for completion of NtCreateFile/etc?
- Debugging Windows Kernel with two VirtualBox hosts
- Device driver does not install on any devices, use primitive driver if this is intended in Visual studio 2019?
- Is kernel space mapped into user space on Linux x86?
- What is the replacement for undocumeneted Windows Kernel API - KeSetAffinityThread() in Windows 7 and later OS
- how to find the number of COM ports and their resources?
- Concatenate large files using Win NT kernel API
- How to share kernel objects, such as Waitable Timers, between processes?
- The Windows desktop becomes paralysed during heavy network I/O / Windows kernel allocates only 1 out of many CPUs?
- How can I see API calls for specific processes in the Windows kernel driver?
- Suspending a NDIS LWF
Related Questions in WINDOWS-API-CODE-PACK
- How to add "Store app" project template to Visual basic?
- CreateProcess windows API stores excel in Documents folder
- Strange issue with shell extesnsions.File returns after delete
- Set 'My Computer' location on a OpenFileDialog (WindowsAPICodePack)
- How to retrieve the 'Deletion Date' property of an Item stored in the Recycle Bin using Windows API Code Pack?
- Get thumbnail of Network DWG file by Windows API Code Pack
- Cannot Find HResult from WindowsAPICodePack
- Using Shellfile to get BitmapSource changes windows size
- Is HWND value is constant for a file/application?
- win10 Using winsock2, ws2bth.h ignored by compiler: BTHPROTO_RFCOMM not found
- How does one detect if Windows Game Bar is active in .NET?
- Removing Taskbar Jumplist?
- Unable to call Close on Window using a ThumbnailToolBarButton
- Screenshot for video files
- how to get file properties?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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