Re: sockets in kernel space

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

 



On Sun, Jul 20, 2003 at 01:08:28PM +0200, Patrick Kilian wrote:
> Hi,
> 
> >> struct socket *guestsock;
> >> error = sock_create(PF_UNIX, SOCK_DGRAM, 0, &guestsock);
> > It looks OK to my eyes.
> I found the error. I wanted to set the socket up too early in the boot 
> process, when the unix protocol is not yet registered with the 
> networking core.
> 
> [snip]
> > Especially try to get value of "error".
> Jep, that one helped.

Then the reply to your other post might be:
You are trying to bind the socket too early in the mount process before
anything is mounted on /tmp. Try to use the virtual namespace. You won't
have that kind of problem (I am actualy using it in my project without
slightest problems).

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[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