OT: kernel oops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux