login
Header Space

 
 

Re: [PATCH] Corrections to Documentation/rbtree.txt

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ian Abbott <abbotti@...>
Cc: <linux-kernel@...>
Date: Tuesday, March 25, 2008 - 2:24 pm

On Tuesday 25 March 2008 06:02:22 Ian Abbott wrote:

Except container_of() works, which is a nice thing to know, and it already 
mentions rb_entry() as another way to do it.  If someone could explain _why_ 
to use one over the other, that would be a good thing to add.


If I wanted abstraction for its own sake I'd be using C++ to implement a 
microkernel.  I would also be certifiably insane.


And this can't be done with container_of()?

Again, I don't care much either way, I just want to know what the point is of 
choosing one over the other that makes changing what's there worth bothering 
with.  You're changing the documentation to hide the fact that rb_entry() is 
basically another name for container_of(), and this is supposed to be an 
improvement?

Rob
-- 
"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Corrections to Documentation/rbtree.txt, Ian Abbott, (Thu Mar 20, 11:29 am)
Re: [PATCH] Corrections to Documentation/rbtree.txt, Rob Landley, (Thu Mar 20, 2:39 pm)
Re: [PATCH] Corrections to Documentation/rbtree.txt, Ian Abbott, (Tue Mar 25, 7:29 am)
Re: [PATCH] Corrections to Documentation/rbtree.txt, Ian Abbott, (Tue Mar 25, 7:02 am)
Re: [PATCH] Corrections to Documentation/rbtree.txt, Rob Landley, (Tue Mar 25, 2:24 pm)
Re: [PATCH] Corrections to Documentation/rbtree.txt, Ian Abbott, (Wed Mar 26, 10:09 am)
speck-geostationary