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

Re: copy_to_user doesnt seem to work all the time



On Sat, 2005-04-02 at 08:17 -0800, Andrew Heaton wrote:


you forgot to attach your full sourcecode or the URL to said sourcecode


> 3. The kernel driver gets some hardware data.
> 4. I subsequently do a read operation, and use copy_to_user to
> fill the SHM buffer with my acquired hardware data.

from what context do you do this?

>     /* Send data to user-space */
>     memcpy_toiovec((struct iovec *)vec, (unsigned char *)
> &data->read, sizeof(struct muxd_read_data) );

ehhhhh???? this sounds wrong.

Attachment: signature.asc
Description: This is a digitally signed message part