creating process from kernel

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

 



Hello All,

I am calling socket function (sock_*) from the kernel. In my work no application is being run, everything should be done from the kernel only. The actual application runs on other boad and communicates with the pci add-on card which runs linux and I have to make use of the TCP/IP stack.To test this I have written one server programe which is running from the kernel.

I faced the following problem. when I connected more than two clients from other machine to the server progarm, it is getting hanged, I guess it is due to the accept() function.

But in actual application program, the process is going to block until the accept returns. Since I do not have any application, how to simulate this.

I had one plan of using kernel threads for accept. will it be appropriate?

Can I create process from the kernel so that for each connection , process is going to block when accept is called .

Thanks in advance.

Regards
Jhoney




[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