kernel socket select issue

From: Sreenivasulu Y
Date: Fri Apr 07 2006 - 06:29:51 EST



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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/