code:ttrstrt - ikarishinjieva/unixV6-code-analyze-chs GitHub Wiki

Source

  • ttstart 8524 通过 timeout 送入事件处理队列 的延迟事件
本函数为事件的处理函数
  • 重新启动tty进行输出

8480 /* ------------------------- */

8481 /* Restart typewriter output following a delay

8482  * timeout.

8483  * The name of the routine is passed to the timeout

8484  * subroutine and it is called during a clock interrupt.

8485  */

8486 ttrstrt(atp)

8487 {

8488     register struct tty *tp;

8489

8490     tp = atp;

8491     tp->t_state =& ~TIMEOUT;

8492     ttstart(tp);

8493 }

8494 /* ------------------------- */

Caller

⚠️ **GitHub.com Fallback** ⚠️