Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Apr 2009
Accessing user memory from kernel module
I have following problem.
I need to allocate pretty big amount of memory in kernel module to store there some data, but kmalloc fails to allocate it.
On the other hand in the user space I can allocate such an amount.
The question is, if I allocate memory and store the data in the user space, how can I access it from the kernel module without using copy_from_user?
Can anyone help me with this?
The thing is you don't access it from the kernel module, you access it from the user program that's running the kernel module functionality so you should be able to pass it a pointer from the allocate data...I hope this makes sense Gerard4143Make mine Arch Linux