OT: kernel oops
Jason White
jason at jasonjgw.net
Fri Jul 19 01:51:30 EDT 2013
Don Raikes <don.raikes at oracle.com> wrote:
> Ok so I get it, but the problem is that I am hooking into the sys_write systemcall, and it is by default cast to a const.
>
> If I leave it as is, and cast the buf in my copy_to_user to a (char*) should that work?
>
Try (void __user *)
which according to Linux Device Drivers is the correct type for copy_to_user.
> Sorry my knowledge of c is very limited :)
I would suggest reading a good book on the subject in that case.
A good knowledge of C is a prerequisite for what you are doing.
More information about the Speakup
mailing list