title: malloc in kernel
body: <p>When I try to use <code>malloc</code> in a kernel module I get an error message from the compiler. My code:</p>
  
  <pre><code>res=(ListNode*)malloc(sizeof(ListNode));
  </code></pre>
  
  <p>The compilers error message is:</p>
  
  <pre><code>/root/ex3/ex3mod.c:491: error: implicit declaration of function ‘malloc’
  </code></pre>
  
  <p>What should I do?</p>