public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kernel socket select issue
@ 2006-04-07 10:29 Sreenivasulu Y
  0 siblings, 0 replies; only message in thread
From: Sreenivasulu Y @ 2006-04-07 10:29 UTC (permalink / raw)
  To: linux-kernel


Hi,

I am trying to create multiple sockets in kernel space and use
'sys_select' call on them for reading data from them whenever it is 
available.

But the problem is  socket structures are returned during creation whereas
sys_selct accepts  a set of socket descriptors ( integers ) as input. Is 
there any
API or macro to convert socket structure to socket desciptor ?

It is easy to use 'select' in user space as socket creation would return a 
socket
descriptor which can be used in either 'select' or 'poll' system calls.

Anyone faced a similar problem? Please suggest on this.
-- 
Regards,
Sreenivasulu Y
Senior software Engineer
Sasken Communication Technologies Limited 



"SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India"

                           SASKEN BUSINESS DISCLAIMER
This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-04-07 10:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-07 10:29 kernel socket select issue Sreenivasulu Y

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox