LWN.net Logo

Advertisement

E-Commerce & credit card processing - the Open Source way!

Advertise here

sample code buggy?

sample code buggy?

Posted Jan 4, 2008 16:50 UTC (Fri) by PaulMcKenney (subscriber, #9624)
In reply to: sample code buggy? by johill
Parent article: What is RCU? Part 2: Usage

Good catch!  As you no doubt guessed, s/atomic_t/struct profile_buffer/ in the declaration of
"buf".


(Log in to post comments)

sample code buggy?

Posted Jan 4, 2008 16:53 UTC (Fri) by PaulMcKenney (subscriber, #9624) [Link]

Hmmm...  Too early in the morning, I guess.  Make that the two declarations of the pointer "p"
rather than "buf".  :-/

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds