Hi,
I want to allocate the continuous memory larger 128k for DMA process.
But i can't used kmalloc() function for allocate the memory larger 128KB.
Please, hepl me allocate the continuous memory larger 128k for DMA process.
Thanks,
Hi,
I want to allocate the continuous memory larger 128k for DMA process.
But i can't used kmalloc() function for allocate the memory larger 128KB.
Please, hepl me allocate the continuous memory larger 128k for DMA process.
Thanks,
What compiler and operating system are you using? How much memory do you have in total? How much is free before you try to malloc() this amount?
What is kmalloc() ? I'm only familiar with malloc() and calloc().
@ adak,kmalloc
You might want to read upIf your code is to be completely portable, it cannot count on being able to allocate anything larger than 128 KB. If you need more than a few kilobytes, however, there are better ways than kmalloc to obtain memory, which we describe later in this chapter.
From here.
Thanks, Bayint! I'm a total noob with Linux.