public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ray Lee <madrabbit@gmail.com>
To: "Bhattacharjee, Satadal" <Satadal.Bhattacharjee@engenio.com>,
	ray-lk@madrabbit.org
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Bagalkote, Sreenivas" <Sreenivas.Bagalkote@engenio.com>,
	"Patro, Sumant" <Sumant.Patro@engenio.com>,
	"Ram, Hari" <hari.ram@engenio.com>,
	"Mukker, Atul" <Atul.Mukker@engenio.com>
Subject: Re: Registering for multiple SIGIO within a process
Date: Wed, 28 Sep 2005 15:51:48 -0700	[thread overview]
Message-ID: <2c0942db05092815516ea8a940@mail.gmail.com> (raw)
In-Reply-To: <91888D455306F94EBD4D168954A9457C04181C2F@nacos172.co.lsil.com>

On 9/28/05, Bhattacharjee, Satadal <Satadal.Bhattacharjee@engenio.com> wrote:
[...]
> Each shared object has function within it to register with kernel to receive
> SIGIO when an event is generated by the HBA. Driver received the event from
> the HBA and sends SIGIO to the kernel.
[...]
> When driver generates a signal, the shared object which registered last,
> receives the signal. The first registration never receives any signal.
[...]
> So can somebody suggest what is the correct mechanism to register with the
> kernel for receiving multiple signals from a single process?

(Sheesh, what is it with people thinking signals are something to be
used in any design after the 1970's?)

You're out of luck. Either register a sigio handler as a dispatcher in
your loader (shell) process before either of the two shared objects
do, and then somehow echo the signal to the correct object by hand
(assuming you can determine which HBA raised the signal -- and no idea
how'd you do this, actually), or fork() the main shell process into at
least one other one to allow receiving of the signals separately. I'd
suggest fork()ing twice, once per HBA, as that'd probably end up
simpler code-wise.

Ray

  reply	other threads:[~2005-09-28 22:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-28 22:02 Registering for multiple SIGIO within a process Bhattacharjee, Satadal
2005-09-28 22:51 ` Ray Lee [this message]
2005-09-28 23:08 ` Bharath Ramesh
  -- strict thread matches above, loose matches on Subject: below --
2005-09-29  0:44 Bagalkote, Sreenivas
2005-09-29  1:15 ` Ray Lee
2005-09-29  3:50   ` Bharath Ramesh
2005-09-29  4:09 Bagalkote, Sreenivas
2005-09-29  5:28 ` Ray Lee

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=2c0942db05092815516ea8a940@mail.gmail.com \
    --to=madrabbit@gmail.com \
    --cc=Atul.Mukker@engenio.com \
    --cc=Satadal.Bhattacharjee@engenio.com \
    --cc=Sreenivas.Bagalkote@engenio.com \
    --cc=Sumant.Patro@engenio.com \
    --cc=hari.ram@engenio.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ray-lk@madrabbit.org \
    --cc=ray@madrabbit.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