Hi,

>          In driver module i am using copy_to_user.i
> have a user module,ths user module i pushed to hernel
> and mafe as a driver module however copy_to_user works
> but if i use memcpy() will be better ? whether memcpy
> is efficient ?
> 

It is really difficult to understand what you are trying to say. But from what 
I can make out, you had some userspace code that you have pushed to the kernel 
space. And you are asking whether memcpy() can be used instead of 
copy_from_user(). Yes, since the data now exists in kernel space, memcpy can / 
should be used. In fact I think copy_from_user() won't even work in this case.

Thanks,

Rajat

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to