Thread (6 messages) 6 messages, 3 authors, 2007-11-30

Re: [PATCH (resubmit)][BRIDGE] Properly dereference the br_should_route_hook

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2007-11-30 02:31:33
Also in: bridge

On Thu, Nov 29, 2007 at 05:25:01PM -0800, Paul E. McKenney wrote:
You have in mind something like the following?

#define rcu_assign_pointer(p, v) \
	({ \
		if (!__builtin_constant_p(v) || \
		    ((v) != NULL)) \
			smp_wmb(); \
		(p) = (v); \
	})
Yes that's what I was thinking.

Thanks,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help