Re: Sockets: synchronous I/O

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

 



"Pradeep Padala" <ppadala@xxxxxxxxxxxxxx> wrote in message 
news:42EF836A.40007@xxxxxxxxxxxxxxxxx
> One way to do this is to use a waitqueue. AFAIK, this is how TUX kernel 
> Pradeep Padala

The waitqueue is definitely the way I'd prefer. So, I used the function 
do_select() (which is called by sys_select() to do the real work) as a 
template and wiped the user-mode-file-descriptor-stuff out of it. But now 
the problem is, that I need a (struct file*) to do the poll(..)-call and a 
"kernel socket" returned by sock_create() isn't attached to a file 
(sock->file == NULL). So what now?

Thanks in advance
Jens 



--
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