lkml.org 
[lkml]   [2007]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: list.h , list_head and C++
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/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-02-26 15:27    [W:0.020 / U:1.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site