‘setup_timer’; did you mean ‘del_timer’?[-Werror=implicit-function-declaration] ^~~~~~~~~~~
del_timerC函数setup_timer()在linux-headers包中声明。当前是linux-headers-4.18.0-16,当然它安装在默认位置/usr/src/ 产生错误的代码(driver.c): #incl
我试图在内核中为c函数添加一个超时。void myfunction() {/* [...] */}
boolean hasFinished = try_until_timeout(myfunction, HZ/10 ) // The task has 100 ms of processor time to complete
if(!hasFinished) { // if the tas