From: paulmck@linux.vnet.ibm.com (Paul E. McKenney)
Subject: [ltt-dev] urcu library name-spacing
Date: Sun, 14 Nov 2010 09:02:52 -0800 [thread overview]
Message-ID: <20101114170252.GG2825@linux.vnet.ibm.com> (raw)
In-Reply-To: <20101114162937.GA773@Krystal>
On Sun, Nov 14, 2010 at 11:29:37AM -0500, Mathieu Desnoyers wrote:
> Hi Paul,
>
> We're currently deploying UST (and thus urcu) into MariaDB (it's also deployed
> in qemu), and it looks like there are some of our primitives that are causing
> namespacing clash, e.g.
>
> list_add
> list_del
>
> etc.
>
> So I was wondering how we could proceed to change the namespace to something
> that is not too confusing. Using a "rcu_" prefix is out of question, because it
> would confuse "rcu-related" primitives (e.g. a primitive designed to be used in
> a rcu read-side C.S. or update) with userspace-rcu-related primitives.
>
> E.g., for list.h, we don't want to name these "rcu_list_add" if they are not
> RCU-aware.
>
> This would apply to other primitives, e.g.:
>
> barrier()
> smp_mb()
> ....
>
> So I would not want to use a prefix that is too long neither.
>
> So far, for the atomic operations, I've simply done:
>
> atomic_op() -> uatomic_op() (simply prepending a u). Do you think we could use
> this technique for the rest ? (e.g. ulist_add, usmp_mb, etc)
Makes sense to me!
Of course, at some point, it might make sense to have the list primitives
in a separate user-level library.
Thanx, Paul
next prev parent reply other threads:[~2010-11-14 17:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-14 16:29 Mathieu Desnoyers
2010-11-14 17:02 ` Paul E. McKenney [this message]
2010-11-14 17:18 ` Mathieu Desnoyers
2010-11-14 17:38 ` David Goulet
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=20101114170252.GG2825@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.ibm.com \
/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