Question on SI_ASYNCIO

From: Sukadev Bhattiprolu
Date: Tue Dec 02 2008 - 23:03:43 EST


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() -

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.



To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at