mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [rfc] epoll interface change and glibc bits ...
@ 2002-11-18 22:04 Grant Taylor
  2002-11-18 22:32 ` Mark Mielke
  2002-11-18 23:07 ` [rfc] epoll interface change and glibc bits Davide Libenzi
  0 siblings, 2 replies; 5+ messages in thread
From: Grant Taylor @ 2002-11-18 22:04 UTC (permalink / raw)
  To: linux-kernel

Ulrich Drepper writes:

>> epoll does hook f_op->poll() and hence uses the asm/poll.h bits.

> It does today. We are talking about "you promise that this will be
> the case ever after or we'll cut your head off". 
> [...]
> it is not you who has to deal with the fallout of a change when it

Maybe Davide wouldn't, but *I* do; my project at work runs over epoll,
and interface changes would require rework by me.

Sensible interface changes in the future won't bother me.  I don't
expect anything in the future nearly as earth-shattering as this
current driver/ioctl->syscall transition.

> If epoll is so different from poll (and this is what I've been told
> frmo Davide) then there should be a clear separation of the
> interfaces and all those arguing to unify the data types and
> constants better should rethink there understanding.

The main call returns a subset of the information that poll returns.
What could be more natural than to name that subset the same thing?

Really, sys_epoll does two things:

 1 It sets up epoll itself.  

   This interface is entirely epoll-specific, and has all EP-specific
   constants etc, in <sys/epoll.h>, as well it should.


 2 It returns the set of poll bits that have changed since the last
   epoll.

   This interface is defined largely in terms of poll, and that's OK.
   How many changes do you expect in the poll interface?


In the end, I don't really feel all that strongly about this bits
issue (since truth be told the performance impact will be very small
at most) so it's up to you and Davide.


OTOH, I really hate the "user pointer in struct epollfd" thing...

-- 
Grant Taylor - gtaylor<at>picante.com - http://www.picante.com/~gtaylor/
   Linux Printing Website and HOWTO:  http://www.linuxprinting.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-11-19 17:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-18 22:04 [rfc] epoll interface change and glibc bits Grant Taylor
2002-11-18 22:32 ` Mark Mielke
2002-11-19 12:33   ` having indistinguishable events halves epoll utility bert hubert
2002-11-19 17:10     ` Davide Libenzi
2002-11-18 23:07 ` [rfc] epoll interface change and glibc bits Davide Libenzi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®