public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Davide Libenzi <davidel@xmailserver.org>
To: lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] small include/linux/list.h integration ...
Date: Mon, 23 Jul 2001 10:00:59 -0700 (PDT)	[thread overview]
Message-ID: <XFMail.20010723100059.davidel@xmailserver.org> (raw)

Subject says it all.


- Davide





diff -Nru linux-2.4.7.vanilla/include/linux/list.h linux-2.4.7/include/linux/list.h
--- linux-2.4.7.vanilla/include/linux/list.h    Fri Feb 16 16:06:17 2001
+++ linux-2.4.7/include/linux/list.h    Sun Jul 22 16:22:36 2001
@@ -149,6 +149,11 @@
 #define list_for_each(pos, head) \
        for (pos = (head)->next; pos != (head); pos = pos->next)
 
+#define list_first(head)       (((head)->next != (head)) ? (head)->next: (struct list_head *) 0)
+#define list_last(head)        (((head)->prev != (head)) ? (head)->prev: (struct list_head *) 0)
+#define list_next(pos, head)   (((pos)->next != (head)) ? (pos)->next: (struct list_head *) 0)
+#define list_prev(pos, head)   (((pos)->prev != (head)) ? (pos)->prev: (struct list_head *) 0)
+
 #endif /* __KERNEL__ || _LVM_H_INCLUDE */
 
 #endif



                 reply	other threads:[~2001-07-23 16:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=XFMail.20010723100059.davidel@xmailserver.org \
    --to=davidel@xmailserver.org \
    --cc=linux-kernel@vger.kernel.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