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

Source

  • kl接口的发送器中断响应函数
  • 传入1个参数:设备号

8070 klxint(dev)

8071 { register struct tty *tp;

8072     tp = &kl11[dev.d_minor];

8073     ttstart(tp);

8074     if (tp->t_outq.c_cc == 0 || tp->t_outq.c_cc == TTLOWAT)

8075                wakeup(&tp->t_outq);

  • 启动tty输出
  • 当输出队列中的字符数为0或为TTLOWAT(定义见tty.h的第7962行,值为20)时
    • 唤醒等待输出队列的进程
8076 }

8077 /* ------------------------- */

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