lkml.org 
[lkml]   [2008]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectQuestion on SI_ASYNCIO
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



\
 
 \ /
  Last update: 2008-12-03 05:05    [W:0.023 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site