lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Mon, 26 Feb 2007 08:25:15 -0600
From:	Robert Hancock <hancockr@...w.ca>
To:	"remi.chateauneu@...il.com" <remi.chateauneu@...il.com>,
	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: list.h , list_head and C++

remi.chateauneu@...il.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@...pamshaw.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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ