User: Password:
Subscribe / Log in / New account

One correction

One correction

Posted Dec 11, 2008 4:53 UTC (Thu) by nevets (subscriber, #11875)
Parent article: A new realtime tree

    #include <linux/lock.h>

    lock_t lock;


The header that is used is still spinlock.h. The lock.h is included by spinlock.h. Currently, if you include lock.h directly, you will get a compile time error.

This may change in the future when we actually start pushing it towards mainline. But as it stands, spinlock.h should still be used.

(Log in to post comments)

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