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;
acquire_lock(&lock);
release_lock(&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.