How to use memcpy in kernel driver

Augusto Mecking Caringi augustocaringi at gmail.com
Mon Jan 27 15:28:57 EST 2014


On Mon, Jan 27, 2014 at 5:53 PM, m silverstri <
michael.j.silverstri at gmail.com> wrote:
>
> How can I use memcoyp in memcpy?
> I try #include stdio.h and string.h, but .h fails to include during
> compilation.
>

Hi,

    stdio.h and string.h are glibc header files (userspace)... Kernelspace
is another thing.

    Try to include "linux/string.h"

-- 
Augusto Mecking Caringi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140127/eef33989/attachment.html 


More information about the Kernelnewbies mailing list