Evgeniy Polyakov wrote: > Why do we want to inject _ready_ event, when it is possible to mark > event as ready and wakeup thread parked in syscall? Going back to this old one: How do you want to mark an event ready if you don't want to introduce yet another layer of data structures? The event notification happens through entries in the ring buffer. Userlevel code should never add anything to the ring buffer directly, this would mean huge synchronization problems. Yes, one could add additional data structures accompanying the ring buffer which can specify userlevel-generated events. But this is a) clumsy and b) a pain to use when the same ring buffer is used in multiple threads (you'd have to have another shared memory segment). It's much cleaner if the userlevel code can get the kernel to inject a userlevel-generated event. This is the equivalent of userlevel code generating a signal with kill(). -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
Attachment:
signature.asc
Description: OpenPGP digital signature
- Follow-Ups:
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Evgeniy Polyakov <[email protected]>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- References:
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Ulrich Drepper <[email protected]>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Evgeniy Polyakov <[email protected]>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Ulrich Drepper <[email protected]>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Evgeniy Polyakov <[email protected]>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Evgeniy Polyakov <[email protected]>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Ulrich Drepper <[email protected]>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Evgeniy Polyakov <[email protected]>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Ulrich Drepper <[email protected]>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Evgeniy Polyakov <[email protected]>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Ulrich Drepper <[email protected]>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- From: Evgeniy Polyakov <[email protected]>
- Re: [take24 0/6] kevent: Generic event handling mechanism.
- Prev by Date: Re: [PATCH 1/1] 2.6.20-rc1-mm1 pktcdvd: cleanup
- Next by Date: Re: [PATCH -rt] update kmap_atomic on !HIGHMEM
- Previous by thread: Re: [take24 0/6] kevent: Generic event handling mechanism.
- Next by thread: Re: [take24 0/6] kevent: Generic event handling mechanism.
- Index(es):