Re: doubts in socket programming in kernel space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux