Linked lists for userspace programs in Linux

Robert P. J. Day rpjday at crashcourse.ca
Mon Jun 16 04:13:42 EDT 2014


On Sun, 15 Jun 2014, Valdis.Kletnieks at vt.edu wrote:

> Oh, by the way, keep in mind that the Linux kernel "linked list" is
> actually a circularly linked list - as a result, treating it as a
> normal linked list (particularly when checking for empty list or
> end-of-list) is likely to result in hilarity and hijinks for all...

   once upon a time, i wrote a piece on how kernel linked lists work,
i think it's still accurate.

http://crashcourse.ca/introduction-linux-kernel-programming/intermission-lets-talk-about-linked-lists-and-containerof-free

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



More information about the Kernelnewbies mailing list