Hello Patrick, I have written my own accept () function in the kernel from sys_accept. rakesh ----- Original Message ----- From: "Patrick McManus" <mcmanus@xxxxxxxxxxxx> To: "Rakesh Jagota" <j.rakesh@xxxxxxxxxxxxx> Cc: <kernelnewbies@xxxxxxxxxxxx> Sent: Thursday, September 30, 2004 5:47 PM Subject: Re: Can a module block? > On Thu, 2004-09-30 at 06:16, Rakesh Jagota wrote: > > Hi all, > > I have TCP server program which I want to write it as a module. My > > daubt Can a module block on accept() function in while-loop. > > the common advice you will get is that this is most likely a very bad > idea. > > in any event, accept() as you know it is not available in kernel space. > > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/