Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
カーネルでは、jiffies をミリ秒と比較します。if ステートメントで 5 ミリ秒でこれを行うことはできますか? 手伝って頂けますか?
ジフィー>5
からinclude/linux/jiffies.h:
include/linux/jiffies.h
extern unsigned int jiffies_to_msecs(const unsigned long j);
カーネルにある場合は、jiffies をミリ秒に変換し、必要に応じて比較します。
#include <linux/jiffies.h> ... ... if (jiffies_to_msecs(jiffies)>5u) ....