code:struct clist - ikarishinjieva/unixV6-code-analyze-chs GitHub Wiki

Source

7900 /*

7901  * A clist structure is the head

7902  * of a linked list queue of characters.

7903  * The characters are stored in 4-word

7904  * blocks containing a link and 6 characters.

7905  * The routines getc and putc (m45.s or m40.s)

7906  * manipulate these structures.

7907  */

7908 struct clist

7909 {

7910     int c_cc; /* character count */

  • 队列 字符数
7911     int c_cf; /* pointer to first block */
  • 队列 头指针
7912      int c_cl; /* pointer to last block */
  • 队列 尾指针
7913 };

7914 /* ------------------------- */

Ref

Caller

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