Problems allocating memory in kernel module
Hello all,
I am trying to allocate a new block of memory for an array using vmalloc_user(), but it only works when I allocate memory in the module initialization function.
Durring module initialization I register a funcion using dev_add_pack(), and that function tried to allocate some memory using vmalloc_user(), but it causes the system to crash.
I have done some additinal testing, and found that kcalloc() works fine outside of the module initialization function. I am going to need more memory that kcalloc() or kmalloc() can assign. I belive the limit is 128KB. So is there any reason why vmalloc_user() would not work after module initialization?
Thanks.
|