* Question on SI_ASYNCIO
@ 2008-12-03 4:03 Sukadev Bhattiprolu
0 siblings, 0 replies; only message in thread
From: Sukadev Bhattiprolu @ 2008-12-03 4:03 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-03 4:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-03 4:03 Question on SI_ASYNCIO Sukadev Bhattiprolu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox