[2.5] Single linked lists for Linux, overly complicated v2
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thunder" == Thunder from the hill <[email protected]> writes:
Quoted 1 line · Rik van Riel
Quoted 1 line
Have you thought about how to _use_ a list without a list head ?
Thunder> Indeed, that was why I've brought this up at all...
What is the problem these lists are intended to solve?
There's no point in adding general infrastructure that has no immediate uses -- it just ends up mouldering in a corner, (like the generic hashing code linux/ghash.h which has been in the kernel for 4 or 5 years, and still has *no* uses.)
--
Dr Peter Chubb [email protected]
You are lost in a maze of BitKeeper repositories, all almost the same.
Em Fri, Sep 27, 2002 at 01:56:28PM +1000, Peter Chubb escreveu:
Quoted 2 lines
(like the generic hashing code
linux/ghash.hwhich has been in the kernel for 4 or 5 years, and still has *no* uses.)
Hey, submit a patch removing this stuff then. If not I'll bite the bullet check it and do it myself :-)
- Arnaldo
Hi,
Quoted 1 line · Peter Chubb
What is the problem these lists are intended to solve?
Reduction of effort in the place where we only have single-direction lists, such as stacks and the scheduler. (That is, whereever we don't need to step back.)
Quoted 4 lines
There's no point in adding general infrastructure that has no immediate uses -- it just ends up mouldering in a corner, (like the generic hashing code
linux/ghash.hwhich has been in the kernel for 4 or 5 years, and still has *no* uses.)
Wasn't it already removed?
Thunder
Signature · 1 line
assert(typeof((fool)->next) == typeof(fool)); /* wrong */
Quoted 1 line
What is the problem these lists are intended to solve?
That's what I kept asking myself when I wrote the orginal push/pop macros. My conclusion was that there is no worthwhile expression of these things in C. Writing those macros was just something I had to do so I could wallow in the ugliness and stop thinking "maybe these things should be generic".
Signature · 1 line
Daniel