There was some talk using netlink sockets in the kernel space. please see the archive. Raghu On 8/29/05, Erik Mouw <J.A.K.Mouw@xxxxxxxxxxxxxx> wrote: > On Mon, Aug 29, 2005 at 02:52:34PM +0530, Sabarinathan Nagarajan wrote: > > I am having few doubts in socket programming in kernel space. I have > > listed it below: > > 1) How to create a socket in kernel space. Should sock_create or > > sys_socket need to be used ? tried with sock_create but it is always > > returning zero. Is this correct ? Also sock_create take an argument > > called struct socket. What should be done with it ? > > Nothing. You shouldn't create sockets in kernel space in the first > place. If you think you need it, it is a sign that you have a very bad > design. Redesign your software in such a way that you can do the socket > stuff in userland. > > > Erik > > -- > Erik Mouw > J.A.K.Mouw@xxxxxxxxxxxxxx mouw@xxxxxxxxxxxx > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (GNU/Linux) > > iD8DBQFDEwWI/PlVHJtIto0RAm3AAJ4zZenUKs/jMb+JmQz+aLf+4KlCHgCeLske > owah8KtWyp4PQuT0gT+3MQk= > =P3Lj > -----END PGP SIGNATURE----- > > > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/