jiffies是什么


# define jiffies raid6_jiffies()    // 函数调用 

                                       

#undef  HZ
#define HZ 1000        
static inline uint32_t raid6_jiffies(void)
{
 struct timeval tv;
 gettimeofday(&tv, NULL);
 return tv.tv_sec*1000 + tv.tv_usec/1000;
}
#endif /* ! __KERNEL__ */
 
// 1s 的tick 就是HZ    
// jiffs2 /HZ  开机到现在过了多少秒   
//一个tick 多长  1/HZ *1000 ms

      

posted @ 2020-10-07 20:17  卷哭你  阅读(226)  评论(0编辑  收藏  举报