Linux内核延时
时间:2010-10-22 来源:chenxibing008
微秒级延时用udelay.
毫秒级延时mdelay()
对于毫秒级或者更大延时推荐用:
头文件<linux/delay.h>
46void msleep(unsigned int msecs);
47unsigned long msleep_interruptible(unsigned int msecs);
48void usleep_range(unsigned long min, unsigned long max);
49
50static inline void ssleep(unsigned int seconds)
51{
52 msleep(seconds * 1000);
53}
54
相关阅读 更多 +