User: Password:
|
|
Subscribe / Log in / New account

Linux kernel design patterns - part 2

Linux kernel design patterns - part 2

Posted Jun 21, 2009 4:02 UTC (Sun) by rusty (subscriber, #26)
Parent article: Linux kernel design patterns - part 2

Two points on your excellent article:

(1) There is a reimplemented variation of these lists in CCAN (http://ccan.ozlabs.org/info/list.html) which has fewer historical warts and a saner license (LGPL v2 or later) than the kernel one.

(2) The rb_tree non-search function is a historical relic; recent gcc will happily inline functions passed by pointer, so search can be made an inline these days. (I had a patch a while back, and reported a bug about the lack of inlining to gcc, which is how I know it's been fixed).

Cheers,
Rusty.


(Log in to post comments)


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds