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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> "Linus" == Linus Torvalds <[email protected]> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux