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/
This archive was generated by hypermail 2b29 : Sat Sep 07 2002 - 22:00:19 EST