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

Re: Sockets: synchronous I/O




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?


sock_map_fd() seems to be what I was looking for

Right, that does it, consider using kernel threads that run in process context.


--
Pradeep Padala
http://ppadala.blogspot.com

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/