Originally Posted by ravishankar.g
I am writing device driver in which i have to call callback function from kernel space, which are saving my data. But the callback functions are in userspace. While accessing them i am getting segmentation fault.
Plz help me to complete this action.
Sure, OK. Here's the solution: "Don't call user space from your kernel driver."
Don't you understand what this would mean? It would allow a user to compromise the security of the kernel. Linux would become Windows. (shudder)
The obvious solution is not to write this as a kernel driver.