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?
319 views Asked by linuspauling At
1
There are 1 answers
Related Questions in KERNEL-MODULE
- crash utility itself crashes while decoding kdump generated from null pointer dereference in kernel module
- How to modify a 'struct msghdr' in Linux Kernel Module?
- How to allocate 500MB+ physically contiguous memory in a Linux kernel module and copy data to that memory from a userspace process?
- Something's wrong with the makefile indentation? (Makefile:x: *** missing separator. Stop.)
- How to setup configfs for a custom Linux kernel module
- How to reduce reserved memory allocated by Linux kernel during boot time
- How do I use RDMA in the kernel so that I can communicate with user-space RDMA?
- How to get full mountpoint path name by the sturct fc_context
- Do kernel and kernel modules have their own task_struct?
- How external kernel module look for exported symbol during modpost
- kernel log trace file entries issue
- memcpy() - unable to handle kernel NULL pointer dereference
- Making a few charecter device in linux
- insmod fails - module does not seem to match running kernel but I cannot figure out why
- Can't get vermagic to match on Linux NVMe driver
Related Questions in DEVICE-DRIVER
- How to allocate 500MB+ physically contiguous memory in a Linux kernel module and copy data to that memory from a userspace process?
- How to enable Swap APO in SYSVAD sample driver without enhancement tab in windows 11?
- Issue retrieving buffer from the device on a custom device driver in MacOS
- A bus error that occurs when mmap memory is used with memcpy
- Create Dummy CPU Performance counter register for Unit Testing of Driver
- I am trying to emulate a board which has a OLED display, but can't see anything. Can you tell me if there is something important I am not considering?
- Error code 0xC1 when trying to create a file mapping
- Do POSIX writes block until the DMA device has finished writing data?
- How does the operating system handle I/O writes, that are not a multiple of the block device's sector-size?
- How to wait for Callback response in C++ on Windows
- How do you debug a bootloader video driver on an ARM (Rockchip RK3588) computing machine?
- Why is the VOP (Video Output Processor) on the Rockchip RK3588 acting inaccessible?
- Linux TTY Operation sequence
- Unable to see any /sys/devices/xx interface created from kernel module loaded through k_vendor_module.rc
- How to natively build Windows 11 device drivers for ARM64 on an ARM64 system?
Related Questions in WINDOWS-KERNEL
- Validating a client from kernel in Windows
- Windows kernel debugging with windbg through network: is there an alternative to ".kdfiles"?
- How can you get a DEVICE_OBJECT from the name of the device?
- Coding drivers to support different modes on chipsets
- TEB representation for ARM64, xpr register
- How to merge discontinuous memory
- How Windows Handle to associate corresponding object type?
- Viewing the named security attributes for token in windbg (kernel mode)
- Windows 10 64-bit (x86_64) ISR hook handler issue
- How to retrieve the cycle time of each processor in the system?
- Memory Access Control in Windows Memory Management
- Windows kernel mini redirector: Handle |FileNormalizedNameInformation| like |FileNameInformation|?
- How can I see API calls for specific processes in the Windows kernel driver?
- Windows Minifilter Driver: Error Faced - fltmc load failed with error: 0x8007007f the specified procedure could not be found
- Suspending a NDIS LWF
Related Questions in WINDOWS-API-CODE-PACK
- Need the absolute path of an embedded URL
- How does one detect if Windows Game Bar is active in .NET?
- win10 Using winsock2, ws2bth.h ignored by compiler: BTHPROTO_RFCOMM not found
- Why are there different Versions of Microsoft.WindowsAPICodePack in NuGet and what is the right one
- GetClipboardData from Windows API sometimes does not return the copied text
- C++ Windows Service User Logoff using WIN API
- VBA Access MouseHook Wrapper
- Access violation when setting Windows Tags
- C# - Using my Windows Forms (not in focus) to send keystrokes to another application (in focus)
- VBA Parse through handles with same name using windows API
- Error "Package 'WindowsAPICodePack 7.0.4' was restored using '.NETFramework..." for a NET6 package
- WinUsb_Initialize always get 0 and error 31
- how to create cascade window in python3 win32gui
- Black edges appear when window is transparent
- Go win64 api permission denied
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?
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)
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