login
Header Space

 
 

Re: epoll and shared fd's

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Michael Kerrisk <mtk.manpages@...>
Cc: Pierre Habouzit <madcoder@...>, lkml <linux-kernel@...>, Eric Dumazet <dada1@...>, Marc Lehmann <schmorp@...>, David Schwartz <davids@...>
Date: Tuesday, February 26, 2008 - 3:04 pm

On Tue, 26 Feb 2008, Michael Kerrisk wrote:


I agree with Bodo, it is kinda confusing. The name "open file description",
even though POSIX, looks very similar to "file descriptor".
I honestly don't know how more easily such concept could be expressed. 
IMHO at least "internal kernel handle" does not play look-alike games with 
"file descriptor".




That'd mean placing an eventpoll custom hook into sys_close(). Looks very 
bad to me, and probably will look even worse to other kernel folks.
Is not much a performance issue (a check to see if a file* is an eventpoll 
file is as easy as comparing the f_op pointer), but a design/style issue.
On top of that, the interface is already out by many years, so changing it 
will like going to cause problems.



- Davide


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: epoll and shared fd's, Michael Kerrisk, (Tue Feb 26, 11:13 am)
Re: epoll and shared fd's, Davide Libenzi, (Tue Feb 26, 3:04 pm)
Re: epoll and shared fd's, Michael Kerrisk, (Tue Feb 26, 3:14 pm)
Re: epoll and shared fd's, Davide Libenzi, (Tue Feb 26, 3:31 pm)
speck-geostationary