How to use memcpy in kernel driver

2014-01-27 Thread m silverstri
Hi, How can I use memcoyp in memcpy? I try #include stdio.h and string.h, but .h fails to include during compilation. Can you please help me? Thank you. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: How to use memcpy in kernel driver

2014-01-27 Thread Kristof Provost
On 2014-01-27 11:53:00 (-0800), m silverstri michael.j.silvers...@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. That's because stdio.h is a C library header. You can't use the C library in the kernel. You

Re: How to use memcpy in kernel driver

2014-01-27 Thread Valdis . Kletnieks
On Mon, 27 Jan 2014 11:53:00 -0800, m silverstri said: I try #include stdio.h Can you please help me? stdio is a libc invention, only used in userspace. As such, you can't call anything in a shared library from within kernel code (although there are similarly named routines for many things).