Re: About I/O callbacks ...

Davide Libenzi (davidel@xmailserver.org)
Fri, 22 Jun 2001 15:23:54 -0700 (PDT)


On 22-Jun-2001 Andi Kleen wrote:
> On Fri, Jun 22, 2001 at 08:55:00AM -0700, Davide Libenzi wrote:
>> I know about rt signals and SIGIO :) but I can't see how You can queue
>> signals :
>>
>> current->sig->action[..]
>>
>> The action field is an array so if more than one I/O notification is fired
>> before the SIGIO is delivered, You'll deliver only the last one.
>> Am I missing something ?
>
> Yes. Realtime signals (>=SIGRTMIN) get queued in current->pending.

An issue with rt signal is the limited number of this resource that
will force you to have a mapping fd ==> coroutine but this should not be a
big problem using hash( fd ) = fd

- Davide

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/