hi all, before doing sock_recvmsg in khhtpd/misc.c it made oldfs=getfs(); set_fs(KERNEL_DS); sock_recvmsg(......); is there any need in other case it would be... but in this particular case to set every time data segment to KERNEL_DS as we are already in kernel space coz our thread has been invoked from module which is in kernel space rather i used abouve call succesfully w/o setting this segment.yes as it is done it has got reason but plz let me know that. prasanna __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/