On Sat, Jan 28, 2006 at 05:39:06PM +0530, K S Sandeep wrote: > Hello, > > I have an additional query in the same situation. I was reading the 'Linux > kernel module programming 2.6'. For a simple char device driver, the sample > code was using 'sprintf' routine to copy the a message from kernel space to > user space. It was? That's wrong, where exactly in the book is that? > I want to know is this valid. If so, then how is the snprintf > routine working? Is it a kernel Provided routine also? IF not valid, then > how is that when i tried that code, it worked. No, it is not valid, and should not work (but on i386, you might get away with it not crashing...) thanks, greg k-h -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/