title: how do we use kmalloc in linux driver code
body: <p>How will I come to know that where exactly or at what point I should  use the kmalloc() to allocate a memory to the device in the device driver?</p>
  
  <p>Is it during initialization or during open? As in malloc,wil kmalloc allocates memory dynamically?</p>