}__set_current_state(TASK_INTERRUPTIBLE);//改变进程状态为睡眠up(&dev->sem); schedule();
td->opcode =0;for(;;) {set_current_state(TASK_INTERRUPTIBLE);if(td->opcode >0) {intret;set_current_state(TASK_RUNNING); ret = handle_op(td,1);set_current_state(TASK_INTERRUPTIBLE);if(td->opcode == RTTEST_LOCKCONT)break; td->opcode = ret; }/* Wait for the next command to be...
td->opcode =0;for(;;) {set_current_state(TASK_INTERRUPTIBLE);if(td->opcode >0) {intret;set_current_state(TASK_RUNNING); ret = handle_op(td,1);set_current_state(TASK_INTERRUPTIBLE);if(td->opcode == RTTEST_LOCKCONT)break; td->opcode = ret; }/* Wait for the next command to be...