On Tue, 24 Oct 2000, Abramo Bagnara wrote: > 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). You're probably right. It certainly makes it easier to add fields later on if we'd want to extend the ID part without having to change old users.. Linus - 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 p... Dan Kegel
- Re: Linux's implementation of p... Linus Torvalds
- Re: Linux's implementation of p... Jim Gettys
- Re: Linux's implementation of p... Dan Kegel
- RE: Linux's implementation of p... Chris Swiedler
- Re: Linux's implementation of p... Dan Kegel
- Re: Linux's implementation of p... Edgar Toernig
- Re: Linux's implementation of poll(... Dan Kegel
- Re: Linux's implementation of p... Linus Torvalds
- Re: Linux's implementation of poll(... Abramo Bagnara
- Re: Linux's implementation of p... Linus Torvalds
- Re: Linux's implementation of poll(... Mark Montague
- Re: Linux's implementation of poll() not scalabl... Nick Piggin
- RE: Linux's implementation of poll() not scalabl... 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 scalabl... Jordan Mendelson
- Re: Linux's implementation of poll() not scalable? Lee Chin
- Re: Linux's implementation of poll() not scalable? Jonathan Lemon