LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Robert Hancock <hancockr@shaw.ca>
To: "remi.chateauneu@gmail.com" <remi.chateauneu@gmail.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: list.h , list_head and C++
Date: Mon, 26 Feb 2007 08:25:15 -0600 [thread overview]
Message-ID: <45E2EDCB.8070008@shaw.ca> (raw)
In-Reply-To: <1172493644.311389.243780@8g2000cwh.googlegroups.com>
remi.chateauneu@gmail.com wrote:
> My C++ program needs an intrusive list, possibly with RCU
> capabilities.The data structure list_head, defined in /usr/include/
> linux/list.h , fits perfectly these needs.
You really shouldn't use kernel data structures in userspace. The
locking and other primitives they depend on are not guaranteed to work.
Also keep in mind that using these structures probably makes your
program a derivative of the kernel and would require your software to be
released under the GPL.
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/
next parent reply other threads:[~2007-02-26 14:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1172493644.311389.243780@8g2000cwh.googlegroups.com>
2007-02-26 14:25 ` Robert Hancock [this message]
[not found] ` <fa.K8OHlwttPU4TDDzMegRRFAIJrxw@ifi.uio.no>
[not found] ` <fa.9RVekJKqUMy1lb5hfYQYDK8VxnE@ifi.uio.no>
[not found] ` <1172571563.228792.208610@h3g2000cwc.googlegroups.com>
2007-02-27 14:34 ` list.h , list_head and C++ Robert Hancock
2007-02-27 16:23 ` Avi Kivity
2007-02-27 16:24 ` J.A. Magallón
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=45E2EDCB.8070008@shaw.ca \
--to=hancockr@shaw.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=remi.chateauneu@gmail.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;
as well as URLs for NNTP newsgroup(s).