From: compudj@krystal.dyndns.org (Mathieu Desnoyers)
Subject: [ltt-dev] [PATCH userspace-rcu] Add a cds_list_del_init()
Date: Wed, 8 Jun 2011 19:31:36 -0400 [thread overview]
Message-ID: <BLU0-SMTP90C13A24A93E99ADFABAED96620@phx.gbl> (raw)
In-Reply-To: <20110608232900.GA11853@linux.vnet.ibm.com>
* Paul E. McKenney (paulmck at linux.vnet.ibm.com) wrote:
> Needed by some perfbook example code.
>
> Signed-off-by: Paul E. McKenney <paulmck at linux.vnet.ibm.com>
Merged, thanks!
Mathieu
>
> diff --git a/urcu/list.h b/urcu/list.h
> index db7685f..ab7a470 100644
> --- a/urcu/list.h
> +++ b/urcu/list.h
> @@ -80,6 +80,14 @@ cds_list_del (struct cds_list_head *elem)
> __cds_list_del (elem->prev, elem->next);
> }
>
> +/* Remove element from list, initializing the element's list pointers. */
> +static inline void
> +cds_list_del_init (struct cds_list_head *elem)
> +{
> + cds_list_del(elem);
> + CDS_INIT_LIST_HEAD(elem);
> +}
> +
> /* delete from list, add to another list as head */
> static inline void
> cds_list_move (struct cds_list_head *elem, struct cds_list_head *head)
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
prev parent reply other threads:[~2011-06-08 23:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-08 23:29 Paul E. McKenney
2011-06-08 23:31 ` Mathieu Desnoyers [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=BLU0-SMTP90C13A24A93E99ADFABAED96620@phx.gbl \
--to=compudj@krystal.dyndns.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