public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Sreenivasulu Y" <ysreenu@sasken.com>
To: linux-kernel@vger.kernel.org
Subject: kernel socket select issue
Date: Fri, 7 Apr 2006 15:59:04 +0530	[thread overview]
Message-ID: <e15eu7$3t6$1@ncc-t.sasken.com> (raw)


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

                 reply	other threads:[~2006-04-07 10:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='e15eu7$3t6$1@ncc-t.sasken.com' \
    --to=ysreenu@sasken.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox