Re: [TRIVIAL PATCH] Remove list_t infection.

Jamie Lokier (lk@tantalophile.demon.co.uk)
Tue, 3 Sep 2002 23:13:30 +0100


David S. Miller wrote:
> A list node is markably different from "the list" itself.
>
> A "list" is the whole of all the nodes on the list, not just one
> of them.

Quite.

And that is why there should be _two_ types:

1. struct list
2. struct list_node

With these two types, `list_add' et al. can actually _check_ that you
got the arguments the right way around.

-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/