If you want to compare time in kernel module, you can user flowing macro to avoid jiffies overflow :
/*in kernel/linux/include/linux/jiffies.h*/
time_after(a,b)
time_before(a,b)
time_after_eq(a,b)
time_before_eq(a,b)
If you compare jiffies directly, you will get wrong result sometimes.
Saturday, May 17, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment