kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: rpjday@crashcourse.ca (Robert P. J. Day)
To: kernelnewbies@lists.kernelnewbies.org
Subject: how it the linux implementation of double linked lists useful
Date: Sun, 2 Aug 2015 16:53:50 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.2.20.1508021653240.3096@localhost> (raw)
In-Reply-To: <CAAGnT3ZDRg-3fBvM4s8BNd7MaWt8vMnDWiJKFH0bC-z+t5Z8dg@mail.gmail.com>

On Sun, 2 Aug 2015, Ahmed Soliman wrote:

> while reading through linux/list.h I noticed that the linked list
> structure is really simple with only pointer to the previous node and
> pointer to next node with no other data (It can't handle anything
> inside it ) I started to wonder how such linked list can be useful to
> the kernel or (useful in general) !
> thanks

  i wrote a tutorial about that once:

http://www.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
========================================================================

      reply	other threads:[~2015-08-02 20:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-02 20:40 how it the linux implementation of double linked lists useful Ahmed Soliman
2015-08-02 20:53 ` Robert P. J. Day [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.20.1508021653240.3096@localhost \
    --to=rpjday@crashcourse.ca \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).