All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
To: linux-kernel@vger.kernel.org
Subject: Question on SI_ASYNCIO
Date: Tue, 2 Dec 2008 20:03:03 -0800	[thread overview]
Message-ID: <20081203040303.GA4071@us.ibm.com> (raw)

Hi,

SI_ASYNCIO is defined in include/asm-generic/siginfo.h as:

	#define SI_ASYNCIO      -4              /* sent by AIO completion */

The negative value makes it a 'user-space' signal according to 

	#define SI_FROMUSER(siptr)      ((siptr)->si_code <= 0)
	#define SI_FROMKERNEL(siptr)    ((siptr)->si_code > 0)

But this signal is generated in the kernel async_completed() -
drivers/usb/core/devio.c

Am trying to understand why this is considered as a user-space signal ?

Isn't SI_ASYNCIO similar to SI_POLL or SI_MESGQ - both of which are
'kernel-signals' ?

POSIX.1 explicitly ignores async io. 

Thanks,

Sukadev


                 reply	other threads:[~2008-12-03  4:03 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=20081203040303.GA4071@us.ibm.com \
    --to=sukadev@linux.vnet.ibm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.