LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how to dynamically allocate memory in a kernel modules? (https://www.linuxquestions.org/questions/programming-9/how-to-dynamically-allocate-memory-in-a-kernel-modules-774369/)

Triumphant 12-08-2009 10:02 PM

how to dynamically allocate memory in a kernel modules?
 
As we know,wo can use malloc() to allocate memory in user space,but I also want to know how to do this in kernel mode?

jhwilliams 12-08-2009 10:19 PM

Why, with kmalloc() of course! Here's some reading: http://www.linuxjournal.com/article/6930


All times are GMT -5. The time now is 06:58 PM.