Linus Torvalds wrote:
>
>
> struct event {
> int fd;
> unsigned long mask;
> void *opaque;
> void (*event_fn)(ind fd, unsigned long mask, void *opaque);
My experience say that:
unsigned long rmask;
void (*event_fn)(struct event *event);
is a far better solution (more type safe, more descriptive).
--
Abramo Bagnara mailto:[EMAIL PROTECTED]
Opera Unica
Via Emilia Interna, 140 Phone: +39.0546.656023
48014 Castel Bolognese (RA) - Italy Fax: +39.0546.656023
ALSA project is http://www.alsa-project.org
sponsored by SuSE Linux http://www.suse.com
It sounds good!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/
- Re: Linux's implementation of ... Eric W. Biederman
- Re: Linux's implementation of ... Dan Kegel
- Re: Linux's implementation of ... Linus Torvalds
- Re: Linux's implementation of ... Jim Gettys
- Re: Linux's implementation of ... Dan Kegel
- RE: Linux's implementation of ... Chris Swiedler
- Re: Linux's implementation of ... Dan Kegel
- Re: Linux's implementation of ... Edgar Toernig
- Re: Linux's implementation of poll... Dan Kegel
- Re: Linux's implementation of ... Linus Torvalds
- Re: Linux's implementation of poll... Abramo Bagnara
- Re: Linux's implementation of ... Linus Torvalds
- Re: Linux's implementation of poll... Mark Montague
- Re: Linux's implementation of poll() not scalab... Nick Piggin
- RE: Linux's implementation of poll() not scalab... David Schwartz
- Re: Linux's implementation of poll() not scalable? Lyle Coder
- Re: Linux's implementation of poll() not scalable? Dan Kegel
- Re: Linux's implementation of poll() not scalab... Jordan Mendelson
- Re: Linux's implementation of poll() not scalable? Lee Chin

