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
Attachment:
signature.asc
Description: Digital signature