[ovs-dev] [RFC 03/10] ovs-rcu: Allow static pointer non-NULL initialization

Ben Pfaff blp at nicira.com
Fri Oct 10 15:53:38 UTC 2014


On Wed, Oct 08, 2014 at 02:09:49PM -0700, Daniele Di Proietto wrote:
> OVSRCU_TYPE_INITIALIZER now accepts a parameter (the initial value of the RCU
> protected pointer).
> 
> Signed-off-by: Daniele Di Proietto <ddiproietto at vmware.com>

Good idea.

It looks like the main value in OVSRCU_TYPE_INIT_NULL is that the name
of OVSRCU_TYPE_INITIALIZER is too long.  I'd rather get rid of
OVSRCU_TYPE_INIT_NULL and rename OVSRCU_TYPE_INITIALIZER to
OVSRCU_TYPE_INIT, then use OVSRCU_TYPE_INIT(NULL) to initialize to null.



More information about the dev mailing list