From: rpjday@crashcourse.ca (Robert P. J. Day) Date: Wed, 20 Mar 2013 09:30:22 -0400 (EDT) Subject: Design Patterns in Linux Kernel: Fancy Tricks With Linked Lists In-Reply-To: <7996fe9a-4a18-4aa5-a3f5-b7b68f98ad95@email.android.com> References: <20130319153423.GA30406@worldash.org> <20130319165209.GB30406@worldash.org> <20130319134424.14082m260s7uv7y8@crashcourse.ca> <7996fe9a-4a18-4aa5-a3f5-b7b68f98ad95@email.android.com> Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Wed, 20 Mar 2013, Greg Freemyer wrote: > "Robert P. J. Day" wrote: > > >Quoting Arlie Stephens : > > > >> Interestingly, part of the debate yesterday probably resulted from > >one > >> engineer having Love's 2nd edition, and me having his 3rd > >> edition. Apparently RPDay pointed out some problems to Love which > >> resulted in him changing his linked list discussion in his 3rd > >> edition ;-) > > > > Been a while since I re-read my own tutorial, it might merit a bit of > >a rewrite. Is there anything about it that seems unclear -- I remember > >my own moment of epiphany, "Holy crap, what an interesting way to do > >it." > > > > And, yes, if you try to reconcile Love's 2nd and 3rd editions on the > >topic, that will not end well. :-) > > > >rday > > > > Robert, > > I read it briefly yesterday. I don't recall it having an example like: "it" being ... ? > Instantiate head pointer > Add 2 or 3 list members > Walk list and printk a object member > > I find examples like that make all the difference for me. i agree completely that a simple picture of an "empty" list showing that it consisted of an initial "struct list_head" would have been amazingly useful. i'm in the midst of (fingers crossed) moving my entire site to a different technology, part of which should support drawing cool diagrams with a minimum of fuss. at which point most of my stuff will be totally rewritten. yes, i love diagrams. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================