On Thu, Dec 11, 2003 at 03:10:26PM -0500, bijoyjth wrote: |Hello Daniele ... really kool of u to offer the course of ur module .. cud u |sent it to me? i can post to kernelnewbies ML ... and i can ask to add the source code to the kernelnewbies website it could be interesting since the following are shown: - how to create a kernel_thread - how to issue sys_call from kernel space (even if it's a better idea) - last but not least: how to send UDP packets from kernel space. |... I have a doubt ... wat is this set_fs and get_fs ... wat do |they do ??? wat i understood is this .. to access userspace data ... we have |to chande the ds register to the processes ds ... and when coming back to our |module we need to set the ds to KERNEL_DS bczo our module runs in kernel space |... am i rit?? Yes you're absolutly right, since when you call sock_sendmsg a "copy from user space" operation happens. -- Daniele. "I could have made money this way, and perhaps amused myself writing code. But I knew that at the end of my career, I would look back on years of building walls to divide people, and feel I had spent my life making the world a worse place." Richard Stallman -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/