Re: [RFC][PATCH 1/5] Virtualization/containers: startup

From: Jes Sorensen
Date: Mon Feb 06 2006 - 05:14:34 EST


>>>>> "Linus" == Linus Torvalds <torvalds@xxxxxxxx> writes:

[snip - excellent description of typedefs considered evil]

Linus> Maybe there are other cases too, but the rule should basically
Linus> be to NEVER EVER use a typedef unless you can clearly match one
Linus> of those rules.

Linus> In general, a pointer, or a struct that has elements that can
Linus> reasonably be directly accessed should _never_ be a typedef.

Hi,

This one sounds like yet another example of something any new Linux
developer should print and stick on his/her wall next to their
monitor.

A candidate for Documentation/ any volunteers?

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