1
在學習內核線程我碰到這段代碼什麼是內核線程中的set_current_state()宏?
while(!kthread_should_stop()){
set_current_state(TASK_RUNNING);
/* Doing some stuff here */
set_current_state(TASK_INTERRUPTIBLE);
msleep(1000);
什麼是宏觀set_current_state用於什麼來的,都是正在傳遞的參數。