hi all, I wanted to know how I can write my own socket ioctl call. I have to add a new one for the socket option in the kernel. I looked at some of the kernel code but couldn't figure out where to add it. There are some ioctls defined in sockios.h . I defined a new one in it. But from the user program which ioctl function shall I use? Can I use sock_ioctl()? Or will ioctl() call will be mapped to the socket ioctl that I have included in sockios.h. The command should also be implemented somewhere. I think af_inet.c for TCP/IP. But I want it to be protocol independent so that I can write different handlers for different protocols. So where do I define the new ioctl ?? Thanx in advance. Anil __________________________________________________ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ - Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/