[ovs-dev] [PATCH 3/7] lib/ovs-rcu: Support static initialization.
Ben Pfaff
blp at nicira.com
Fri Oct 24 23:15:44 UTC 2014
On Fri, Oct 24, 2014 at 01:36:37PM -0700, Jarno Rajahalme wrote:
> Currently, OVSRCU_TYPE_INITIALIZER always initializes the RCU pointer
> as NULL. There is no reason why the RCU pointer could not be
> initialized with a non-NULL value, however, as statically allocated
> memory is even more stable than required for RCU.
>
> This patch changes the initializer to OVSRCU_INITIALIZER(VALUE), which
> can take any pointer value as a parameter.
>
> This allows rculist, which is introduced in a following patch, to
> provide an initializer similar to the one in the normal list.
>
> Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>
More information about the dev
mailing list