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.
--